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 nas
Recipients nas, ronaldoussoren, spatz
Date 2008-06-19.20:36:27
SpamBayes Score 5.7779944e-05
Marked as misclassified No
Message-id <1213907791.3.0.40502746768.issue3054@psf.upfronthosting.co.za>
In-reply-to
Content
Looks like this has exposed some ugly code.  From setup.py:

  # Figure out the location of the source code for extension modules
  # (This logic is copied in distutils.test.test_sysconfig,
  # so building in a separate directory does not break test_distutils.)

I believe the proper fix is to move some of the code from setup.py into
sysconfig so that it does more than just set "python_build" when running
inside a Python build directory.  For example, it should also add
<srcdir>/Include to the standard list of includes that distutils uses.

The attached patch fixes test_build_ext.py to use the right source file
(perhaps it should be tested on Windows).  The test still fails because
Python.h cannot be found.
History
Date User Action Args
2008-06-19 20:36:32nassetspambayes_score: 5.77799e-05 -> 5.7779944e-05
recipients: + nas, ronaldoussoren, spatz
2008-06-19 20:36:31nassetspambayes_score: 5.77799e-05 -> 5.77799e-05
messageid: <1213907791.3.0.40502746768.issue3054@psf.upfronthosting.co.za>
2008-06-19 20:36:30naslinkissue3054 messages
2008-06-19 20:36:29nascreate