Commits

Simon Sapin committed d737905

Pass --system-site-packages explicitly to virtualenv.

--no-site-packages is the default since virtualenv 1.7,
--system-site-packages needs to be passed explicitly when using
sitepackages=True

  • Participants
  • Parent commits 01a8cb8

Comments (0)

Files changed (1)

File tox/_venv.py

         args = [config_interpreter, venvscript]
         if not self._ispython3() and self.envconfig.distribute:
             args.append('--distribute')
-        if not self.envconfig.sitepackages:
+        if self.envconfig.sitepackages:
+            args.append('--system-site-packages')
+        else:
             args.append('--no-site-packages')
         #if sys.platform == "win32":
         #    f, path, _ = py.std.imp.find_module("virtualenv")