Skip to content

Virtualenv install broken on Windows #4142

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

Closed
emmatyping opened this issue Oct 20, 2017 · 0 comments
Closed

Virtualenv install broken on Windows #4142

emmatyping opened this issue Oct 20, 2017 · 0 comments

Comments

@emmatyping
Copy link
Member

It seems that virtualenvs do not have a userbase prefix, so my recent changes in #4005 broke this. First reported here.

AleksanderGondek added a commit to AleksanderGondek/mypy that referenced this issue Oct 22, 2017
Fixes python#4142. Python `site.py` from any virtualenv does not contain many functions added in python 2.7 (see: pypa/virtualenv#355), which results in method `site.getsitepackages` being absent.

This commit replaces getsitepackages call with equivalent of `distutils.sysconfig.get_python_lib` which is supported in virtualenv.
AleksanderGondek added a commit to AleksanderGondek/mypy that referenced this issue Oct 22, 2017
Fixes python#4142. Python `site.py` from any virtualenv does not contain many functions added in python 2.7 (see: pypa/virtualenv#355), which results in method `site.getsitepackages` being absent.

This commit replaces getsitepackages call with equivalent of `distutils.sysconfig.get_python_lib` which is supported in virtualenv.
AleksanderGondek added a commit to AleksanderGondek/mypy that referenced this issue Oct 23, 2017
Fixes python#4142. Python `site.py` from any virtualenv does not contain many functions added in python 2.7 (see: pypa/virtualenv#355), which results in method `site.getsitepackages` being absent.

This commit replaces getsitepackages call with equivalent of `distutils.sysconfig.get_python_lib` which is supported in virtualenv.
ilevkivskyi pushed a commit that referenced this issue Oct 25, 2017
Fixes #4142. Python `site.py` from any virtualenv does not contain
many functions added in python 2.7
(see: pypa/virtualenv#355), which results in
method `site.getsitepackages` being absent.

This commit replaces getsitepackages call with equivalent of
`distutils.sysconfig.get_python_lib` which is supported in virtualenv.
JukkaL pushed a commit that referenced this issue Oct 31, 2017
Fixes #4142. Python `site.py` from any virtualenv does not contain
many functions added in python 2.7
(see: pypa/virtualenv#355), which results in
method `site.getsitepackages` being absent.

This commit replaces getsitepackages call with equivalent of
`distutils.sysconfig.get_python_lib` which is supported in virtualenv.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant