-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Relative paths in requirements don't seem to work #892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like we're running pip 1.5.6 on the build server -- I imagine we aren't running the requirements file from the directory -- does pip expect that path relative to the file or the current working dir? |
I did a quick test and it appears to be the current working directory. I guess running pip from the same directory as the requirements.txt seems logical - though, the project root would be another candidate. If it's the project root, I can just move my requirements or just have a special one for rtd. Ideally I could just use file: urls but these seem broken for relative directories (though file:../currentdir/ is a horrible workaround ... as long as pip is executed from the same directory as requirements). |
Having the install process depend on where pip is run from seems like tying On Mon, Aug 18, 2014 at 9:59 AM, Stuart Axon [email protected]
Eric Holscher |
If pip ever fixes relative paths and file: urls then the workaround isn't needed. I'm not usually a fan of "add a setting", in this case though, you could add a setting for the CWD, relative to the project that pip will be run from. |
Now I think about it more, being able to set the CWD is probably the only sane option. |
Seems like #890 is the main issue here, closing this one. |
In my project we have a sphinx extension .. my requirements file points at it like this:
./sphinxcontrib_shoebot
Locally I have pip 1.5.6 and installing this requirements flle works correctly.
On rtd I get this error:
https://readthedocs.org/builds/shoebot-test-rtd/1610799/
The text was updated successfully, but these errors were encountered: