You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are differences in behaviour when it comes to the dependencies which are ignored or installed whenever sync or install -r are used.
Assume a scenario where a user wishes to update a project written originally for an earlier Python version, 3.9, together with all its dependencies but the original Pipfile doesn't contain the exact versions pinned or is missing altogether. However, assume either the requirements.txt or the Pipfile.lock files are available.
Expected result
One would expect that the results of pipenv sync and pipenv install -r requirements.txt, in the later Python environment, are equivalent, but this is not the case.
In the case of a migration, say from Python 3.9 to 3.11, and when using pipenv sync, dependencies for which python_version marker mismatches are observed will be ignored.
However, in the same scenario, when using pipenv install -r the same dependencies will still be installed.
Issue description
There are differences in behaviour when it comes to the dependencies which are ignored or installed whenever
sync
orinstall -r
are used.Assume a scenario where a user wishes to update a project written originally for an earlier Python version,
3.9
, together with all its dependencies but the originalPipfile
doesn't contain the exact versions pinned or is missing altogether. However, assume either therequirements.txt
or thePipfile.lock
files are available.Expected result
One would expect that the results of
pipenv sync
andpipenv install -r requirements.txt
, in the later Python environment, are equivalent, but this is not the case.In the case of a migration, say from Python
3.9
to3.11
, and when usingpipenv sync
, dependencies for whichpython_version
marker mismatches are observed will be ignored.However, in the same scenario, when using
pipenv install -r
the same dependencies will still be installed.Actual result
requirements.txt
sync
Steps to replicate
The
Pipfile.lock
andrequirement.txt
files together withpipenv
installation logs discussed here can be found in this repository: https://gitlab.com/jdsalaro-group/public/pipenv-sync-install-requirements-differences$ pipenv --support
Pipenv version:
'2023.11.15'
Pipenv location:
'/Users/user/.asdf/installs/python/3.11.0/lib/python3.11/site-packages/pipenv'
Python location:
'/Users/user/.asdf/installs/python/3.11.0/bin/python3.11'
OS Name:
'posix'
User pip version:
'23.3.1'
user Python installations found:
PEP 508 Information:
System environment variables:
PATH
MANPATH
TERM_PROGRAM
SHELL
TERM
ASDF_DIR
TMPDIR
HOMEBREW_REPOSITORY
TERM_PROGRAM_VERSION
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME
TERM_SESSION_ID
USER
COMMAND_MODE
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
LaunchInstanceID
__CFBundleIdentifier
PWD
ASDF_CONFIG_FILE
ITERM_PROFILE
XPC_FLAGS
XPC_SERVICE_NAME
COLORFGBG
HOME
SHLVL
LC_TERMINAL_VERSION
HOMEBREW_PREFIX
ASDF_DATA_DIR
ITERM_SESSION_ID
LOGNAME
LC_CTYPE
HOMEBREW_CELLAR
INFOPATH
LC_TERMINAL
SECURITYSESSIONID
COLORTERM
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/user/.asdf/installs/python/3.11.0/bin:/Users/user/.asdf/installs/python/3.12.0/bin:/Users/user/.asdf/installs/python/3.9.18/bin:/Users/user/.asdf/installs/python/-h/bin:/Users/user/.asdf/installs/python/3.9.1/bin:/Users/user/.asdf/installs/python/3.10.0/bin:/Users/user/.asdf/plugins/python/shims:/Users/user/.asdf/installs/python/3.11.0/bin:/Users/user/.rd/bin:/Users/user/.asdf/shims:/opt/homebrew/opt/asdf/libexec/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin
SHELL
:/bin/zsh
PWD
:/tmp/pipenv-sync-install-requirements-differences
The text was updated successfully, but these errors were encountered: