[issue4483] Error to build _dbm module during make
Andrew Price
report at bugs.python.org
Fri Dec 5 02:00:22 CET 2008
Andrew Price <andy at andrewprice.me.uk> added the comment:
Skip, the new patch makes it fail with (highlights):
...
File "/home/andy/src/python3/Python-3.0/Lib/distutils/ccompiler.py",
line 844, in has_function
import tempfile
File "/home/andy/src/python3/Python-3.0/Lib/tempfile.py", line 35, in
<module>
from random import Random as _Random
File "/home/andy/src/python3/Python-3.0/Lib/random.py", line 42, in
<module>
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil
as _ceil
ImportError: No module named math
make: *** [sharedmods] Error 1
The has_function source in Lib/distutils/ccompiler.py has this comment:
# this can't be included at module scope because it tries to
# import math which might not be available at that point - maybe
# the necessary logic should just be inlined?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4483>
_______________________________________
More information about the Python-bugs-list
mailing list