-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
install --download
fails if development library dependencies are missing
#661
Comments
The root problem here is that Python packaging does not yet have static metadata, and thus requires running In general, it's intentional that pip runs Another possibility might be to avoid running |
I've worked similar places with firewalling on prod servers. We used --download during the continuous integration phase, which was allowed to speak to the internet and published to an internal repository and used |
@carljm Thanks for the clarification! I reported this on the psycopg2 bug tracker, so let's see if they have an interest to fix |
Hello from the psycopg2 bug tracker. Feel free to provide a patch. Thank you. |
I looked into this a bit. It looks like the problem isn't in the pip+psycopg2 combination, but setuptools+psycopg2 since pip uses setuptools under the hood. I was able to reproduce the same error message by adding an
at the top of
Any ideas where to go from here? Should I raise this on the Distribute bug tracker, or is Setuptools/Distribute doing the right thing when it always creates all command objects? Should the |
I'm going to close this, the issue is going to be with the psycogp2 library which requires libpq to be intalled to run the |
I have a server where outbound HTTP traffic is intentionally prohibited. When deploying my web app, I'm downloading Python package dependencies on another host and rsyncing them up to the server.
If the dependencies include packages which have C extensions, and the required development libraries aren't present on the host, pip refuses to download any remaining packages. The
--no-deps
option has no effect on this behavior.Downloading packages on a different machine is probably a common use case for
--download
. It would make sense for it to work even if development packages aren't installed on the dowloading machine.As an example, let's assume a requirements.txt:
If I now run:
I get this:
In this case, the psycopg2 package is downloaded, but python-dateutils is not:
The text was updated successfully, but these errors were encountered: