-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Compiling C sources with absolute path bug #37775
Comments
Py-2.3 distutils is broken in the following situation
Fix: This can be achived by inserting the following line base = base[os.path.isabs(base):] Pearu |
Logged In: YES I'm a little boggled by how distutils would get an absolute |
Logged In: YES FYI, distutils does not make this absolute path, but one can |
Logged In: YES Actually, I guessed after posting that something like that BTW, I strongly suspect this is related to the fix for this bug: [ 599248 ] ext module generation problem Can you come up with a patch for your suggested fix? I'm |
Logged In: YES Attached patch maps the base of a source file with absolute Pearu |
Logged In: YES Checked in as patch 1.56 of ccompiler.py. I'll look into backporting to 2.2. Thanks! |
The patch applied for this issue has caused problems (namely in pypa/distutils#169). When invoking the compiler in an isolated fashion (not in the context of a distutils build), it causes the artifacts to be generated in the current directory, but if the sources are passed with a relative path, the artifacts are generated in the same directory. This divergence of behavior is surprising and confusing. I'm exploring deprecating this behavior to see if it can be reverted. |
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: