Closed paul-english closed 9 years ago
Hi Paul, thanks for the report.
We just tripped with this issue a few days ago and commited a hotfix in the development branch using PipSession, which was an optional argument in older versions of pip... it's not ideal but it works for now :(
Your fix suggestion is interesting, what do you think of it @jmansilla?
I like what Paul is mentioning, and sounds less hackish (ie, lower dependence on what pip boys decide).
I came across that in a comment on this post. It's noted that pip isn't supported as an API
Speaking as a pip maintainer pip does not support being called as an API like this at all. ~Donald Stufft
Additionally another answer in that thread offers up the solution I proposed.
@log0ymxm yeah, I got the same answer a few days ago: https://github.com/pypa/pip/issues/2286 https://github.com/pypa/pip/issues/2287
Using parse_requirements isn't a recommended way to deal with setup.py & requirements.txt dependencies. This is because you can't be sure of the pip version used by someone installing your package.
With pip 6.0.6 on python 3.4 attempting to install iepy ends up with the following error.
One thing I've seen is to have the dependencies only specified in setup.py, and in requirements.txt simply have
-e .
to install the local package. I'm not sure if this is the recommended approach, but it may work.