Gael Pasgrimaud avatar Gael Pasgrimaud committed 65d4791

Always install a virtualenv. Split line arguments for install

Comments (0)

Files changed (2)

+0.3 (2008-12-7)
+==================
+
+ - Fixes: Always install a virtualenv. Split line arguments for install
+
 0.2 (2008-12-7)
 ==================
 
  - Fix error when no download cache is set [Gael Pasgrimaud].
 
-0.1 (2008-12-7)
-==================
-
- - Initial release [Gael Pasgrimaud].
-

gp/recipe/pip/__init__.py

         self.buildout, self.name, self.options = buildout, name, options
 
     def pip_install(self, part_dir, src_dir, extra_args):
+        print 'pip install %s' % ' '.join(extra_args)
 
         # pop command line arguments
         args = ['install',
                     })
 
         # call pip
+        #print 'PYTHONPATH=%s' % env['PYTHONPATH']
+        #print ' '.join(cmd)
         code = call(' '.join(cmd), shell=True, env=env)
         if code != 0:
             raise RuntimeError('An error occur during pip installation. See %s-log.txt' % self.name)
 
         # pip installs
 
+        # venv
+        self.pip_install(part_dir, src_dir, [])
+
         # VSC
         editables = [('-e', e) for e in to_list(self.options.get('editables', ''))]
         for e in editables:
             for k in buildout_versions:
                 if i.endswith(k):
                     i = '%s==%s' % (i, buildout_versions.get(k))
-            self.pip_install(part_dir, src_dir, [i])
+            self.pip_install(part_dir, src_dir, i.split())
 
 
         # prepare options for zc.recipe.egg
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.