[NumPy-Tickets] [NumPy] #1857: Pip install into virtualenv doesn't work
NumPy Trac
numpy-tickets@scipy....
Tue Aug 2 11:30:09 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 embray):
I see what you're saying; I didn't realize that numpy ''should'' work with
--editable.
The reason this patch would ''not'' work with --editable is that it relies
on `--egg-base pip-egg-info` being in `sys.argv` to determine that the
egg_info argument is being run by pip. However, that argument is not
present when installing with --editable. I don't think we can rely on
looking up the frame stack since pip runs the setup.py in a subprocess.
However, I tried removing the test for pip-egg-info and instead just
fixing up `__file__` regardless of whether we're being installed by pip,
and that seems to work just fine, including with --editable.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1857#comment:15>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list