holger krekel avatar holger krekel committed e4c41b2

fix issue119: sitepackagesdir now correctly points to virtualenv dir, not tox's own. also added a test to prevent regression.

Comments (0)

Files changed (3)

+1.6.1
+-----
+
+- fix issue119: {envsitepackagesdir} is now correctly computed and has
+  a better test to prevent regression.
+
+
 1.6.0
 -----------------
 

tests/test_z_cmdline.py

     result = cmd.run("tox")
     assert result.ret == 0
     result.stdout.fnmatch_lines("""
-        X:*site-packages*
+        X:*.tox*python*site-packages*
     """)
 
 def verify_json_report_format(data, testenvs=True):

tox/interpreters.py

             return self.name2executable[name]
         except KeyError:
             self.name2executable[name] = e = find_executable(name)
+            print ("executable for %s is %s" %(name, e))
             return e
 
     def get_info(self, name=None, executable=None):
             executable = self.get_executable(name)
         if not executable:
             return NoInterpreterInfo(name=name)
+        print ("get info for %s" % executable)
         try:
             return self.executable2info[executable]
         except KeyError:
 
 def sitepackagesdir(envdir):
     from distutils.sysconfig import get_python_lib
-    return dict(dir=get_python_lib(envdir))
+    return dict(dir=get_python_lib(prefix=envdir))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.