-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] setuptools>=65.2.0 fails to find Python.h in Blender embedded Python environment #3589
Comments
I meet the same questions. May the reason is the same one . #3605 |
Same here, although that's a more general issue that has nothing to do with Blender. I compile Python with
But setuptools doesn't use those paths as it strips the prefix, for instance:
I assume that comes from this merge. |
The issue is fixed (see #3657 for more details). |
setuptools version
setuptools>=65.2.0
Python version
Python 3.10.2
OS
Ubuntu Linux x86_64
Additional environment information
Running in Blender 3.3.0's embedded Python environment.
Description
Trying to install OpenEXR inside Blender's embedded Python environment.
The package contains C code where
Python.h
is included. To addPython.h
to the environment I downloaded Python source code matching the version from python.org, and extracted the header files underInclude
intoblender/3.3/python/include/python3.10/
. Then I runblender/3.3/python/bin/python3.10 -m pip install OpenEXR
to install OpenEXR.This worked before with setuptools under 65.1.1, but after udpating setuptools over 65.2.0 the installation failed with error:
OpenEXR.cpp:1:10: fatal error: Python.h: No such file or directory
Expected behavior
Successfully compiling and installing OpenEXR inside Blender embedded Python.
How to Reproduce
blender-3.3.0-linux-x64/3.3/python/bin/python3.10 -m ensurepip
blender-3.3.0-linux-x64/3.3/python/bin/python3.10 -m pip install setuptools==65.2.0
Include
into blender python's include directory:cp -r Python-3.10.2/Include/* blender-3.3.0-linux-x64/3.3/python/include/python3.10/
blender-3.3.0-linux-x64/3.3/python/bin/python3.10 -m pip install OpenEXR
blender-3.3.0-linux-x64/3.3/python/bin/python3.10 -m pip install setuptools==65.1.1
blender-3.3.0-linux-x64/3.3/python/bin/python3.10 -m pip install OpenEXR
Output
The text was updated successfully, but these errors were encountered: