Broken build system as of 2002-06-04
Anders Qvist
quest at lysator.liu.se
Tue Jul 9 04:17:16 EDT 2002
The snake-farm has been choking on the python CVS source since
2002-06-04, like thus (on _all_ platforms):
case $MAKEFLAGS in \
*-s*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ../python/dist/src/setup.py -q
build;; \
*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ../python/dist/src/setup.py build;; \
esac
running build
running build_ext
Traceback (most recent call last):
File "../python/dist/src/setup.py", line 1008, in ?
main()
File "../python/dist/src/setup.py", line 1003, in main
scripts = ['Tools/scripts/pydoc']
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/core.py", line 140, in setup
dist.run_commands()
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/dist.py", line 886, in run_commands
self.run_command(cmd)
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/dist.py", line 906, in run_command
cmd_obj.run()
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/command/build.py", line 107, in run
self.run_command(cmd_name)
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/cmd.py", line 334, in run_command
self.distribution.run_command(command)
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/dist.py", line 906, in run_command
cmd_obj.run()
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/command/build_ext.py", line 244, in run
customize_compiler(self.compiler)
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/sysconfig.py", line 146, in customize_compiler
(cc, opt, ccshared, ldshared, so_ext) = \
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/sysconfig.py", line 446, in get_config_vars
func()
File "/home/quest/tmp/snakefarm/python/dist/src/Lib/distutils/sysconfig.py", line 332, in _init_posix
raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/local/lib/python2.3/config/Makefile (No such file or directory)
make: *** [sharedmods] Error 1
The problem occurs only when building the python source in a separate
build dir. Eg:
cd build
../pythonb/dist/src/config
make all
It seems to me that sysconfig.py is unaware that building may occur in
a separate directory.
--
Anders "Quest" Qvist
"We've all heard that a million monkeys banging on a million typewriters
will eventually reproduce the entire works of Shakespeare. Now, thanks
to the Internet, we know this is not true." -- Robert Wilensky
More information about the Python-list
mailing list