-
-
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
Can't use markers with local wheels after upgrading from 2022.10.12 to 2024.1.0 #6280
Comments
Can you try this branch: #6276 and report back if it solves this particular issue too. |
Same problem. I'm going to see if I can find a way to get
|
I can get the behavior I'm looking for by setting |
The weird thing @caseyduquettesc in your output is:
I think maybe because you have x86 in the filename but you are targeting arm64 and darwin ... |
I have two wheels, one for arm64 and one for x86_64. pipenv used to ignore the incompatible wheels because the markers wouldn't match my local platform, but now it fails. |
@caseyduquettesc I suspect I know why and it was caused during the conversion off requirementslib last year -- I suspect that if you change your entries to be full markers, you'd maybe get the expected result 🤔
|
I gave that a shot because I suspected something similar, but it still failed with the same error. |
@caseyduquettesc can you try this branch? #6282 |
Issue description
In 2022.10.12, I was vendoring in some locally built wheels that took a while to compile, namely
grpcio
andpycryptodome
. (Pipfile included at end)This would resolve the dependencies of the package, but during installation, use the correct wheel file based on the current platform. The lock file would include entries for each package, vendored and non-vendored
There would be some warnings about packages being skipped because they weren't compatible but everything worked correctly.
After upgrading to 2024.1.0, I can't seem to find a way to make local wheels work with markers.
Expected result
I'd expect to be able to apply markers to local wheel files as I could before
Actual result
Locking the same Pipfile fails with the following error
pycryptodome-3.9.9-cp39-cp39-macosx_12_0_x86_64.whl is not a supported wheel on this platform.
If I comment out
vendored_pycryptodome_macosx_12_0_x86_64
, locking succeeds, but the remaining wheels are missing from the lock file.Steps to replicate
On MacOS arm64,
$ pipenv --support
Pipenv version:
'2024.1.0'
Pipenv location:
'/Users/casey.duquette/.pyenv/versions/3.9.13/lib/python3.9/site-packages/pipenv'
Python location:
'/Users/casey.duquette/.pyenv/versions/3.9.13/bin/python3'
OS Name:
'posix'
User pip version:
'24.1.2'
user Python installations found:
PEP 508 Information:
System environment variables:
SHELL
PYENV_HOOK_PATH
ITERM_PROFILE
COLORTERM
PYENV_SHELL
XPC_FLAGS
TERM_PROGRAM_VERSION
rvm_prefix
TMUX
BYOBU_HIGHLIGHT
rvm_alias_expanded
TERM_FEATURES
__CFBundleIdentifier
JAVA_HOME
rvm_ruby_file
rvm_quiet_flag
SSH_AUTH_SOCK
rvm_docs_type
rvm_gemstone_package_file
BYOBU_DATE
GOPRIVATE
ANDROID_SDK
TERM_SESSION_ID
MY_RUBY_HOME
HOMEBREW_PREFIX
rvm_ruby_bits
SSH_AGENT_PID
RBENV_SHELL
BYOBU_CONFIG_DIR
EDITOR
PYENV_VERSION
ANDROID_NDK
RUBY_VERSION
PWD
PYENV_VIRTUALENV_INIT
LOGNAME
rvm_nightly_flag
rvm_version
rvm_pretty_print_flag
BYOBU_EDITOR
rvm_bin_flag
COMMAND_MODE
ITERM_SESSION_ID
rvm_hook
HOME
LANG
BYOBU_ULIMIT
BYOBU_TERM
VIRTUAL_ENV
BYOBU_BACKEND
BYOBU_ACCENT
rvm_niceness
TMPDIR
LC_TERMINAL
PERL5LIB
rvm_silent_flag
GOROOT
BYOBU_DARK
rvm_proxy
ANDROID_NDK_HOME
PYENV_DIR
BYOBU_PAGER
NVM_DIR
rvm_ruby_make_install
rvm_bin_path
GEM_PATH
GEM_HOME
rvm_only_path_flag
ANDROID_HOME
BYOBU_SED
TERM
SCALA_HOME
PERL_MB_OPT
USER
TMUX_PANE
COLORFGBG
HOMEBREW_CELLAR
PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV
LC_TERMINAL_VERSION
PERL_MM_OPT
BYOBU_PREFIX
SHLVL
BYOBU_LIGHT
NVM_CD_FLAGS
ANDROID_SDK_ROOT
BYOBU_TIME
HOMEBREW_REPOSITORY
SNAP_FROM_SOURCE_ENABLED
rvm_ruby_mode
BYOBU_CHARMAP
BYOBU_WINDOW_NAME
VIRTUAL_ENV_PROMPT
XPC_SERVICE_NAME
BYOBU_READLINK
TERMINFO_DIRS
HOMEBREW_GITHUB_API_TOKEN
BYOBU_DISTRO
PYENV_ROOT
rvm_ruby_make
GONOSUMDB
rvm_use_flag
PATH
rvm_sdk
rvm_script_name
rvm_gemstone_url
IRBRC
HOOKS_DISABLED
rvm_path
OLDPWD
GOPATH
BYOBU_TTY
__CF_USER_TEXT_ENCODING
BYOBU_RUN_DIR
TERM_PROGRAM
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/casey.duquette/.pyenv/versions/3.6.15_x86_64/bin:/Users/casey.duquette/.pyenv/versions/3.9.13/bin:/Users/casey.duquette/.pyenv/versions/3.8.13/bin:/Users/casey.duquette/.pyenv/versions/3.11.8/bin:/Users/casey.duquette/.pyenv/versions/3.7.14/bin:/Users/casey.duquette/.pyenv/versions/3.8.16_x86_64/bin:/Users/casey.duquette/.pyenv/versions/2.7.18_x86_64/bin:/Users/casey.duquette/.pyenv/versions/3.9.10/bin:/Users/casey.duquette/.pyenv/versions/3.8.16/bin:/Users/casey.duquette/.pyenv/versions/3.7.14_x86_64/bin:/Users/casey.duquette/.pyenv/versions/2.7.18/bin:/Users/casey.duquette/.pyenv/versions/3.9.13/bin:/Users/casey.duquette/.pyenv/libexec:/Users/casey.duquette/.pyenv/plugins/python-build/bin:/Users/casey.duquette/Snapchat/Dev/SC/mobile/phantom/snapci/.venv/bin:/Users/casey.duquette/.svm/current/rt/bin:/Users/casey.duquette/google-cloud-sdk/bin:/Users/casey.duquette/.rbenv/shims:/Users/casey.duquette/.rvm/gems/ruby-3.2.1/bin:/Users/casey.duquette/.rvm/gems/ruby-3.2.1@global/bin:/Users/casey.duquette/.rvm/rubies/ruby-3.2.1/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.4/shims:/Users/casey.duquette/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/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:/usr/local/munki:/usr/local/munkireport:/opt/snapchat/bin:/Users/casey.duquette/.rvm/bin:/Users/casey.duquette/bin:/opt/homebrew/opt/go/libexec/bin:/usr/local/sbin:/Users/casey.duquette/google-cloud-sdk/bin:/Users/casey.duquette/Snapchat/Dev/scripts:/nix/var/nix/profiles/default/bin:/Users/casey.duquette/.pyenv/libexec:/Users/casey.duquette/.pyenv/bin:/Users/casey.duquette/go/bin:/Users/casey.duquette/Library/Android/sdk/platform-tools:/Users/casey.duquette/Library/Android/sdk/ndk:/Users/casey.duquette/.rvm/bin
SHELL
:/bin/zsh
EDITOR
:vi
LANG
:en_US.UTF-8
Contents of
Pipfile
('Pipfile'):The text was updated successfully, but these errors were encountered: