-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add support for optional extras in Pipenv #6034
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
Install log
|
@glensc I am not sure I understand -- you call out the extras that you want |
@matteius I want to declare systemd dependency optional as it's not available on all environments. but seems I misunderstood the feature. how do I declare dependency ijn Pipfile that is allowed to fail? I came up with platform selector (Taxel/PlexTraktSync#1654):
but it's not accurate, it's available on some linuxes, for example: available on debian, but not available on alpine. |
I wanted to install like: pipenv install [systemd] that would take |
Ah I see what you mean now.
Sorry for the trouble-- |
problem is not in the marker, problem is that what could work if Pipfile supports optional dependencies, or extras, then the user would type
(or whatever the syntax would be) |
Uh oh!
There was an error while loading. Please reload this page.
Issue description
The reverse of #4407: I want
extras
not to be installed.In longer: I want to specify
systemd
package in Pipfile, which is installed only if requested, i.e.pipenv install
must not install the package with "systemd" marker because[systemd]
was not specified.Expected result
Install packages from
Pipfile.lock
whoseextras
does not match.Actual result
It attempts to install a package with
extras=systemd
Steps to replicate
You can check the
Pipfile
andPipfile.lock
from here:$ pipenv --support
Pipenv version:
'2023.11.15'
Pipenv location:
'/*redacted*/python-3.11/lib/python3.11/site-packages/pipenv'
Python location:
'/*redacted*/python-3.11/bin/python3.11'
OS Name:
'posix'
User pip version:
'23.3.1'
user Python installations found:
PEP 508 Information:
System environment variables:
Pipenv–specific environment variables:
PIPENV_VERBOSITY
:-1
Debug–specific environment variables:
PATH
: redactedSHELL
:/bin/zsh
EDITOR
:vim
LANG
:en_US.UTF-8
PWD
:*redacted*/PlexTraktSync
VIRTUAL_ENV
:*redacted*/PlexTraktSync/.direnv/python-3.11
Contents of
Pipfile
('/redacted/PlexTraktSync/Pipfile'):Contents of
Pipfile.lock
('/redacted/PlexTraktSync/Pipfile.lock'):The text was updated successfully, but these errors were encountered: