-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improved support for --exec-prefix #125
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
Comments
Yeah there is no attach file - can you either create fork in github, create a branch against develop, add your fix, push to github and create a pull request. Or put the diff in a gist at http://gist.github.com/ if that's easier and paste the URL here. Creating a branch, etc preserves author information, etc. |
Can you explain why site-packages has to be skipped during exec-prefix copying with your change? It's not obvious to me. |
It would hit the 'directory exists' state in my patched copyfile(), and This has parity in the non-exec-prefix section of code:
--Buck On Wed, Apr 27, 2011 at 8:26 AM, carljm <
|
I'm using hg currently. I haven't even installed git yet. Here's the gist: https://gist.github.com/944589--buck On Tue, Apr 26, 2011 at 11:44 PM, pnasrat <
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Just add a comment if you want to keep it open. Thank you for your contributions. |
Virtualenv currently doesn't work with a python installation configured with different --prefix and --exec-prefix, due to the way it handles lib-dynload. Currently, it first copies over a couple files in lib-dynload ( zlib.so and readline.so ) and creates the lib-dynload directory in the process. It then tries to fixup exec-prefix installtions by copying over the lib-dynload from sys.exec_prefix, but failes with "File already exists". This results in many key modules becoming unavailable, such as _hashlib.so (dependency of setuptools) and _time.so (dependency of distribute).
My fix was to add recursion in the copyfile() function which copying a directory which already exists in the destination. This necessitates skipping site-packages during the exec-prefix setup.
Patch: ( Sorry for the format. I don't see an "attach file" option. )
The text was updated successfully, but these errors were encountered: