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

NumPy Trac numpy-tickets@scipy....
Fri Jun 3 10:09:54 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):

 In pip/req.py something like "python setup.py egg_info" is run in a
 subprocess. Before that it explicitly sets __file__, which explains the
 difference in values we get returned from

 The offending code in req.py is
     def setup_py(self):
         return os.path.join(self.source_dir, 'setup.py')
     ## FIXME: This is a lame hack, entirely for PasteScript which has
     ## a self-provided entry point that causes this awkwardness
     _run_setup_py = """
     __file__ = __SETUP_PY__
     script = script.replace('__SETUP_PY__', repr(self.setup_py))

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

More information about the NumPy-Tickets mailing list