Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free-threaded Python 3.13 builds #308754

Closed
layday opened this issue May 3, 2024 · 4 comments
Closed

Free-threaded Python 3.13 builds #308754

layday opened this issue May 3, 2024 · 4 comments
Labels
0.kind: packaging request Request for a new package to be added 6.topic: python

Comments

@layday
Copy link

layday commented May 3, 2024

It would be helpful to have these prebuilt by e.g. offering a python313 variant such as python313-freethreading. The official Python 3.13 installers offer or will offer free-threaded builds as an option, see https://discuss.python.org/t/pep-703-making-the-global-interpreter-lock-optional-in-cpython-acceptance/37075/37 and there is some discussion on the naming convention in other distros at python/steering-council#221.

@layday layday added the 0.kind: packaging request Request for a new package to be added label May 3, 2024
@mweinelt
Copy link
Member

Closed via #326919.

@rht
Copy link
Member

rht commented Oct 15, 2024

I tried python313FreeThreading, while I can disable GIL, I still can't enable JIT because it is not compiled with such

Python 3.13.0rc3 experimental free-threading build (main, Oct  1 2024, 02:03:08) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sysconfig
>>> sysconfig.get_config_var("PY_CORE_CFLAGS")
'-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -I/nix/store/lhfgwjwwdacygiq702yvbahvpqmxivpx-libxcrypt-4.4.36/include -fno-semantic-interposition -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -fno-semantic-interposition -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.6.2-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.6-dev/include -I/nix/store/lhfgwjwwdacygiq702yvbahvpqmxivpx-libxcrypt-4.4.36/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mpdecimal-4.0.0-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4.20221231-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.14-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.46.0-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.6.2-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3.1-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-tzdata-2024a-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.24-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p10-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.8-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.6.2-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.4.6-dev/include -I/nix/store/lhfgwjwwdacygiq702yvbahvpqmxivpx-libxcrypt-4.4.36/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-mpdecimal-4.0.0-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.4.20221231-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-3.0.14-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.46.0-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.6.2-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.3.1-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-tzdata-2024a-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.24-dev/include -I/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-8.2p10-dev/include -fPIC -DPy_BUILD_CORE'

is it out of scope of this issue to ask for a JIT flag in the compilation? I can't open an issue for a feature request, as this is not a new package request, nor a bug report.

@mweinelt
Copy link
Member

You sure can pick what fits best and file a separate issue as this one is closed.

@natsukium
Copy link
Member

see #331764

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added 6.topic: python
Projects
None yet
Development

No branches or pull requests

5 participants