Skip to content

How to manage platform specific sub-dependencies #4408

@nealkruis

Description

@nealkruis

My example is that I am using doit for task automation, which includes macfsevents as an extra_requires on macOS.

In most cases, platform specific dependencies should be harmless on other operating systems. The real problem is that this particular dependency fails to install on other operating systems. The only way I have found to get around this is to remove the entry in the lock file (things still work fine on macOS without it--though I don't know if this is reliably the case for other sub-dependencies).

There's some related discussion in #3902.

My questions are:

  1. Should pipenv be setting a platform specific marker for this sub-dependency and others in the extra_requires field?
  2. Is there a method in the Pipfile to tell the environment to ignore specific sub-dependencies, or an alternative workaround where I don't have to modify the lock file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Question ❔This is a question or a request for support.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions