Skip to content

Extras not getting installed when the package that includes the extras has already been installed  #4957

Closed
@eeshangarg

Description

@eeshangarg
  • 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:

  1. We have a repo with multiple packages in it.
  2. We have the zulip_bots package that depends on requests and simple_salesforce. simple_salesforce further depends on requests[security].
  3. The zulip_bots package also depends on the zulip package in the same repo which also depends on/installs requests. So, it is clear that requests does get installed whether you install zulip or zulip_bots.
  4. We usually use our provision script to set up a dev env and install the zulip and zulip_bots packages.
  5. 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! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: dependency resolutionAbout choosing which dependencies to installC: extrasHandling optional dependencies

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions