This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AndyP
Recipients AndyP, legerf, skip.montanaro, tlesher
Date 2008-12-05.01:00:19
SpamBayes Score 5.334278e-07
Marked as misclassified No
Message-id <1228438822.63.0.92887227954.issue4483@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2008-12-05 01:00:23AndyPsetrecipients: + AndyP, skip.montanaro, tlesher, legerf
2008-12-05 01:00:22AndyPsetmessageid: <1228438822.63.0.92887227954.issue4483@psf.upfronthosting.co.za>
2008-12-05 01:00:20AndyPlinkissue4483 messages
2008-12-05 01:00:19AndyPcreate