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
test_disutils fails #47304
Comments
test_distutils fails when you're not building in the root of the source That is: mkdir build This fails like this: test test_distutils failed -- Traceback (most recent call last):
File "/Users/ronald/Projects/python/python-
trunk/Lib/distutils/tests/test_build_ext.py", line 23, in setUp
shutil.copy(xx_c, self.tmp_dir)
File "/Users/ronald/Projects/python/python-trunk/Lib/shutil.py", line
82, in copy
copyfile(src, dst)
File "/Users/ronald/Projects/python/python-trunk/Lib/shutil.py", line
46, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory:
'/Users/ronald/Projects/python/python-trunk/build104/Modules/xxmodule.c' |
This also happens in py3k. |
Looks like this has exposed some ugly code. From setup.py: # Figure out the location of the source code for extension modules I believe the proper fix is to move some of the code from setup.py into The attached patch fixes test_build_ext.py to use the right source file |
I think my previous patch combined with sysconfig_builddir.patch fixes BTW, distutils is a den of stinking evil. ;-) |
One final patch for today (get_python_inc.patch). The patch combines my |
This issue is fixed in the 2.7 and 3.2 trees. I'm therefore closing this issue. |
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: