New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate build dir broken #48401
Comments
Building in a separate directory got broken at some point. The code is |
get_python_inc() and test case is addressed in bpo-4070 as well. |
[Roumen Petrov]
Without that change the test fails on Unix platforms when the build is 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 |
I committed my proposed changes in several chunks, ending with r69305. |
May be not related to the commit but after clean make fail to build a The value of srcdir (from Makefile) is ".." without quotes. About cleanup: one use of '(srcdir,)==...' left in setup.py . |
The "clean build' mean missing subdirectory build in <builddir> . Now |
Roumen, thanks for reporting the bug. It seems that distutils requires |
still seen on the 2.6 branch. applying r69374 on the branch doesn't fix |
On Thu, Feb 12, 2009 at 01:32:37PM +0000, Matthias Klose wrote:
The fix is spread over a number of commits: r69374, r69322, r69315, Obviously most core Python developers don't build in a separate |
I'm having trouble with this as well :( It's pretty much a blocker for Effectively the source is referred to in my setup.py as living in |
One additional commit change srcdir = os.path.normpath(srcdir) to Andi, did above change work for you. |
current status with 2.7 alpha3: FAIL: test_get_python_inc (distutils.tests.test_sysconfig.SysconfigTestCase) Traceback (most recent call last):
File "/home/packages/python/2.7/python2.7-2.7~a3/Lib/distutils/tests/test_sysconfig.py", line 47, in test_get_python_inc
self.assertTrue(os.path.isfile(python_h), python_h)
AssertionError: /home/packages/python/2.7/python2.7-2.7~a3/build-static/Include/Python.h unsure about this one: Traceback (most recent call last):
File "/home/packages/python/2.7/python2.7-2.7~a3/Lib/distutils/tests/test_build.py", line 24, in test_finalize_options
self.assertEquals(cmd.build_purelib, wanted)
AssertionError: 'build/lib.linux-i686-2.7' != 'build/lib' |
I believe the latest problem reported has been fixed by SVN rev 80649. |
I think so too. |
For the record, I’m not clear about what is fixed or not in each branch. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: