Skip to content

Fix build issues when Python with free-threading is used - #261

Merged
manugarg merged 4 commits into
manugarg:mainfrom
smuzaffar:patch-1
Oct 3, 2026
Merged

manugarg merged 4 commits into
manugarg:mainfrom
smuzaffar:patch-1

Conversation

@smuzaffar

Copy link
Copy Markdown
Contributor

Building pasparser with pythin 3.14 (free-threading enabled) failed with error [a]. This change allows to find the correct lib.linux-x86_64-cpython-314t' lib

[a]

Build dir: %s pacparser/src/../tests/../src/pymod/build
['lib.linux-x86_64-cpython-314t', 'temp.linux-x86_64-cpython-314t']
Traceback (most recent call last):
  File "pacparser/src/../tests/runtests.py", line 39, in runtests
    pacparser_module_path = module_path(tests_dir)
  File "pacparser-/src/../tests/runtests.py", line 35, in module_path
    return glob.glob(os.path.join(builddir, 'lib*%s' % py_ver))[0]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "pacparser/src/../tests/runtests.py", line 88, in <module>
    main()
    ~~~~^^
  File "pacparser/src/../tests/runtests.py", line 85, in main
    runtests(pacfile, testdata, tests_dir)
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "pacparser/src/../tests/runtests.py", line 41, in runtests
    raise Exception('Tests failed. Could not determine pacparser path.')

smuzaffar and others added 4 commits September 15, 2026 09:05
Building pasparser with pythin 3.14 (free-threading enabled) failed with error [a]. This change allows to find the correct `lib.linux-x86_64-cpython-314t'` lib

[a]
```
Build dir: %s pacparser/src/../tests/../src/pymod/build
['lib.linux-x86_64-cpython-314t', 'temp.linux-x86_64-cpython-314t']
Traceback (most recent call last):
  File "pacparser/src/../tests/runtests.py", line 39, in runtests
    pacparser_module_path = module_path(tests_dir)
  File "pacparser-/src/../tests/runtests.py", line 35, in module_path
    return glob.glob(os.path.join(builddir, 'lib*%s' % py_ver))[0]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "pacparser/src/../tests/runtests.py", line 88, in <module>
    main()
    ~~~~^^
  File "pacparser/src/../tests/runtests.py", line 85, in main
    runtests(pacfile, testdata, tests_dir)
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "pacparser/src/../tests/runtests.py", line 41, in runtests
    raise Exception('Tests failed. Could not determine pacparser path.')
```
@manugarg
manugarg merged commit a1ca0dc into manugarg:main Oct 3, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants