This looks to be a misfeature of the setup.py
script always including /usr/local
in the search path when make
builds the target sharedmods
.
You'll have to manually frob the setup.py
, so do the...
./configure --enable-shared --prefix=/app/vendor/python-dev
...first, then edit setup.py
, find lines 442, 443, and 444 which should look like this...
if not cross_compiling:
add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
...and comment them out so they look like this...
# if not cross_compiling
# add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
# add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
...then the make
should work.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…