-
-
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
Pipenv doesn't install Jinja2 MarkupSafe dependency when using--two
#2866
Comments
Seems to be skipping it in the locking phase:
|
🤦🏻♂️ Fixed this myself with Appears there was a bad result in the cache. |
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\ravi\appdata\local\programs\python\python38\lib\site-packages (from Jinja2>=2.10.1->flask) (1.1.1) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue description
When installing jinja2 under Python 2.7.15, the MarkupSafe dependency is omitted from Pipefile.lock.
Expected result
Pipenv adds markupsafe to Pipfile.lock
Actual result
The dependency is not recorded in Pipfile.lock. Note that the dependency is installed in the original venv, it's just not recorded in the lock, so if I remove and recreate the environment Jinja2 is unusable.
If I use
--three
to install under Python 3.7, the dependency is recorded in Pipfile.lock as expected.Steps to replicate
In an empty dir:
In Pipfile.lock, markupsafe is missing.
If I repeat the process with
--three
instead of--two
, markupsafe is added to Pipfile.lock as expected.The dependency declaration looks standard, I can't see any reason why it should be treated differently under Python 2: https://github.com/pallets/jinja/blob/7a6704db55fcd9bbe5a90c3868e03f5a5fcf176a/setup.py#L74
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv'
Python location:
'/usr/local/Cellar/pipenv/2018.7.1/libexec/bin/python3.7'
Other Python installations in
PATH
:2.7
:/usr/local/bin/python2.7
2.7
:/usr/local/bin/python2.7
2.7
:/usr/bin/python2.7
3.7
:/usr/local/bin/python3.7m
3.7
:/usr/local/bin/python3.7
2.7.15
:/usr/local/bin/python
2.7.10
:/usr/bin/python
2.7.15
:/usr/local/bin/python2
3.7.0
:/usr/local/bin/python3
PEP 508 Information:
System environment variables:
PATH
TERM
SHELL
HISTSIZE
TMPDIR
USER
PAGER
PWD
DEFAULT_USER
EDITOR
LANG
ITERM_PROFILE
HOME
LESS
LOGNAME
VISUAL
HISTFILE
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/Cellar/pipenv/2018.7.1/libexec/tools:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/al4/.rvm/bin:/Users/al4/Library/Python/3.7/bin
SHELL
:/bin/zsh
EDITOR
:nano
LANG
:en_GB.UTF-8
PWD
:/Users/al4/pipenv-test
Contents of
Pipfile
('/Users/al4/pipenv-test/Pipfile'):Contents of
Pipfile.lock
('/Users/al4/pipenv-test/Pipfile.lock'):The text was updated successfully, but these errors were encountered: