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

Where does virtualenv get its version of site.py from? #1250

Closed
Napoleon-BlownApart opened this issue Dec 3, 2018 · 4 comments
Closed

Where does virtualenv get its version of site.py from? #1250

Napoleon-BlownApart opened this issue Dec 3, 2018 · 4 comments

Comments

@Napoleon-BlownApart
Copy link

[Ubuntu 14.04]
I have Python 2.7.6 and Python 3.4.3 installed on my system.
I'm in the process of learning how virtual environments are managed and have come across an anomaly I can't explain.
When I create a new environment mkvirtualenv myenv (regardless of the site-packages flag), I end up with a site.py that is different from the Python versions I have on my system. I've searched my server for a template file which virtualenv copies into my environment, but there aren't any. Where does this version come from?

I have read #228 but that hasn't help me understand.

@gaborbernat
Copy link
Contributor

It's a custom site.py baked within virtualenv code itself.

@gaborbernat
Copy link
Contributor

@Ivoz
Copy link

Ivoz commented Dec 23, 2018

Specifically it was last cribbed from Python 2.6.

@gaborbernat
Copy link
Contributor

That's not true, we've been syncing it up from time to time.

@pypa pypa locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants