Closed
Description
- Pip version: 9.0.1
- Python version: 3.5.2
- Operating system: Ubuntu 16.04.3 LTS
Description:
Note: I initially reported this here pypa/setuptools#1247, but was advised to report it here instead.
A similar issue was reported and fixed here for pip
.
In our case:
- We have a repo with multiple packages in it.
- We have the
zulip_bots
package that depends onrequests
andsimple_salesforce
.simple_salesforce
further depends onrequests[security]
. - The
zulip_bots
package also depends on thezulip
package in the same repo which also depends on/installsrequests
. So, it is clear thatrequests
does get installed whether you installzulip
orzulip_bots
. - We usually use our provision script to set up a dev env and install the
zulip
andzulip_bots
packages. - But recently, when we ran this executable (part of the
zulip_bots
package), we ran into:
pkg_resources.DistributionNotFound: The 'cryptography>=1.3.4; extra == "security"' distribution was not found and is required by requests
The above error led us to conclude that for some reason, requests[security]
was not getting satisfied as expected.
It would mean a lot to us if someone could please shed some light on whether this is a re-manifestation of #3189 and #3198 or simply a quirk in our understanding of how extra dependencies are resolved! Thanks! :)