-
Notifications
You must be signed in to change notification settings - Fork 211
compile with python 3.13t (nogil) #458
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
Comments
@grafikrobot , do you know what's wrong here ? My b2 knowledge is next to non-existent. |
@stefanseefeld hmm.. something strange is going on with the include paths for python:
It would help if we got the output of running the build with the |
I can reproduce this build error if I leave out the
Change the build command to add an explicit include path:
The generated
Knowing where that include path is set would be helpful I guess (I'm not familiar with
Output up the the first build failure
I checked that my CMake is recent enough; it's at 3.31.6 while 3.30.0 is the minimum version needed for free-threaded CPython support (such versions are tracked here, I'll add Boost.Python to that table as well). In the end this looks like all it needs is appending a single |
Okay, found it I think:
>>> import sysconfig
>>> sysconfig.get_config_var('Py_GIL_DISABLED')
1 |
I have installed free-threading python 3.13 following https://py-free-threading.github.io/installing_cpython/ on ubuntu 22.04(with gcc 11.04.0), with command:
conda create -n nogil --override-channels -c conda-forge python-freethreading
But compile python 3.13t with boost-1.86.0 failed, below the steps:
1, configure boost successfully:
./bootstrap.sh --with-python=/home/mydesktop/anaconda3/envs/nogil
2, compile boost failed:
./b2 --toolset=gcc --with-python include="/home/mydesktop/anaconda3/envs/nogil/include/python3.13t/" --with-thread --with-date_time --with-chrono --with-system
3, error message:
Obviously I missed "pyconfig.h", but i successfully compiled boost 1.86 with python 3.11 with the same step. Any suggestions? Thanks in advance!
The text was updated successfully, but these errors were encountered: