Skip to content
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

backport venv module #110

Open
graingert opened this issue Apr 4, 2019 · 1 comment
Open

backport venv module #110

graingert opened this issue Apr 4, 2019 · 1 comment

Comments

@graingert
Copy link

https://github.com/python/cpython/tree/3.7/Lib/venv/

@arizvisa
Copy link
Contributor

As a result of PR #117, the venv module will likely need to be rewritten a bit for the Windows platform as the PYTHONHOME used to locate all of the available modules is determined by the location of the Python DLL, so you can literally just copy the directory around and run python from it without actually needing to "activate" it in your shell.

Installation of packages should depend on site.getsitepackages() which uses sys.prefix and sys.execprefix, so just make sure you run the correct executable. Posix-compliant platforms also should still work the same which means you can likely just use the module as-is and it will work as you intend.

I can look at making the contents of that dir into a PR once my latest PR gets merged, but in the meantime you should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants