-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Inconsistent sys_platform markers when running pipenv install
#2359
Comments
Thanks for the bug report! I agree with you. This is a bizarre issue and I really have no clue what is going on with it. I know of one other issue like it (installing |
It's worth mentioning that it seems to confuse the output of |
Graph shows the dependency tree whether it’s all present or not |
Ah, well in that case possibly an update of the documentation would be in order. According to the docs:
|
Documentation pull requests tend to be accepted quite quickly :) |
@ptink it already does show a graph of your installed dependencies, and it shows a |
I am 99% sure this is fixed by #2384 |
closing -- should be resolved |
This issue is still lingering in the |
A
sys_platform
marker is occasionally being erroneously added toPipfile.lock
when installing certain libraries.$ python -m pipenv.help output
Pipenv version:
'2018.05.18'
Pipenv location:
'C:\\Users\\~\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\pipenv'
Python location:
'C:\\Users\\~\\AppData\\Local\\Programs\\Python\\Python36\\python.exe'
Other Python installations in
PATH
:3.6
:C:\Users\~\AppData\Local\Programs\Python\Python36\python.exe
3.6.5
:C:\Users\~\AppData\Local\Programs\Python\Python36\python.exe
3.6.5
:C:\Windows\py.exe
PEP 508 Information:
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:removed
SHELL
:C:\Program Files\Git\usr\bin\bash.exe
LANG
:en_US.UTF-8
PWD
:C:/dev/git/test
Contents of
Pipfile
('C:\dev\git\test\Pipfile'):Contents of
Pipfile.lock
('C:\dev\git\test\Pipfile.lock'):Expected result
When running
pipenv install --dev
to install libraries, one of which has asys_platform
specific dependency and the other that has the same dependency regardless ofsys_platform
. I would expect the dependency in question to be added toPipfile.lock
without anysys_platform
markersActual result
Pipfile.lock
output can vary withoutPipfile
contents changing, sometimes thesys_platform
marker is present, occasionally it isn'tSteps to replicate
Create a
Pipfile
with two libraries with the same sub-dependency but different sys_platform requirements (e.g.sphinx
andpinocchio
,sphinx
only requires the dependencycolorama
on win32,pinocchio
requirescolorama
regardless of platform)pipenv install
, observe output ofPipfile.lock
Pipfile.lock
pipenv install
again, observe output"markers": "sys_platform == 'win32'",
will sometimes show in Pipfile.lock, occasionally it won't. I believe the marker should never appear, aspinocchio
always requirescolorama
.I am running
pipenv
via git-bash on Windows, however I have tested and the same thing happens via powershellThe text was updated successfully, but these errors were encountered: