Don't use system_site_packages on non-Windows.

See #463.
This commit is contained in:
Florian Bruhin 2015-01-23 12:03:54 +01:00
parent 907440d12c
commit b8c54b5f02

View File

@ -142,11 +142,12 @@ def link_pyqt():
def create_venv():
"""Create a new venv."""
utils.print_title("Creating venv")
system_site_packages = True
if os.name == 'nt':
symlinks = False
system_site_packages = True
else:
symlinks = True
system_site_packages = False
clear = g_args.clear or g_args.force
builder = venv.EnvBuilder(system_site_packages=system_site_packages,
clear=clear, upgrade=g_args.upgrade,
@ -165,6 +166,9 @@ def main():
create_venv()
utils.print_title("Installing setuptools")
venv_python('-m', 'pip', 'install', 'setuptools')
utils.print_title("Calling: setup.py develop")
venv_python('setup.py', 'develop')