[NumPy-Tickets] [NumPy] #1857: Pip install into virtualenv doesn't work

NumPy Trac numpy-tickets@scipy....
Fri Jun 3 09:36:33 CDT 2011

#1857: Pip install into virtualenv doesn't work
 Reporter:  rgommers           |       Owner:  rgommers   
     Type:  defect             |      Status:  new        
 Priority:  normal             |   Milestone:  Unscheduled
Component:  numpy.distutils    |     Version:  1.6.0      
 Keywords:  pip, easy_install  |  

Comment(by rgommers):

 To get past the first error we can change the first part of
 {{{get_path_from_frame}}} to:
         caller_file = eval('__file__', frame.f_globals, frame.f_locals)
         d = os.path.dirname(os.path.abspath(caller_file))
         # Ugly hack to support PIP install in a virtualenv.
         if d.endswith('build/numpy'):
             d = d + 'build/numpy'

 Then we run into what looks like a pip issue:
 running egg_info

 Running from numpy source directory.error: error in 'egg_base' option:
 'pip-egg-info' does not exist or is not a directory

 Command python setup.py egg_info failed with error code 1
 Storing complete log in /Users/rgommers/.pip/pip.log
 this comes from {{{run_egg_info}}} in pip/req.py

Ticket URL: <http://projects.scipy.org/numpy/ticket/1857#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list