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, rpetrov
Date 2008-10-22.16:13:38
SpamBayes Score 1.794928e-09
Marked as misclassified No
Message-id <1224692020.67.0.0946877780741.issue4151@psf.upfronthosting.co.za>
In-reply-to
Content
[Roumen Petrov]
> Modification for test_build_ext.py from above mentioned issue break
> non-posix builds.

Without that change the test fails on Unix platforms when the build is
not done inside the source directory.  I guess the problem must be the
change from (essentially):

def _get_source_filename():
    return os.path.join(sysconfig.project_base, 'Modules', 'xxmodule.c')

to

def _get_source_filename():
    srcdir = sysconfig.get_config_var('srcdir')
    return os.path.join(srcdir, 'Modules', 'xxmodule.c')

On POSIX, project_base is just the directory containing the Python
executable.  I think the right thing to do is to fix the srcdir var on
non-POSIX systems.  I don't have a Windows machine to test on.  Could
someone test the get_python_inc2.patch with the non_posix_srcdir.patch
applied on top of it?
History
Date User Action Args
2008-10-22 16:13:41nassetrecipients: + nas, rpetrov
2008-10-22 16:13:40nassetmessageid: <1224692020.67.0.0946877780741.issue4151@psf.upfronthosting.co.za>
2008-10-22 16:13:39naslinkissue4151 messages
2008-10-22 16:13:39nascreate