Don't search platform path
Don't use Python.h from the platform specific path
This commit is contained in:
1 parent
afce2f8162
commit
397986d19a
1 file changed
+1
-1
@@ -22,7 +22,7 @@ from distutils.sysconfig import get_python_inc
|
||||
import sys
|
||||
import os
|
||||
|
||||
python_header = os.path.join(get_python_inc(plat_specific=1), 'Python.h')
|
||||
python_header = os.path.join(get_python_inc(plat_specific=0), 'Python.h')
|
||||
if not os.path.exists(python_header):
|
||||
sys.exit("Cannot find Python development packages that provide Python.h")
|
||||
|
||||
|
||||
Reference in new issue
Block a user