-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Unable to install for multi platforms. markers and sys_platform is ignored #6354
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
I'm not sure if this is the same issue. I have git pipenv installed. These local universal2 wheels pipenv is trying to install the pip version not the local wheel when running
Running the wheel install manually worked. Lipo reported the included libraries as fat binaries.
|
After examining the code, I can identify the issue with platform-specific dependencies and local wheel files in Pipenv. Let me explain what's happening and propose a solution. The Issue Platform Marker Handling: When Pipenv processes the Pipfile entries with both a file path and markers, it's not correctly applying the platform markers to the local wheel files during dependency resolution. Package Name Conflicts: The way you've named your packages is causing conflicts. When you have both cffi and cffi_mac in your Pipfile, Pipenv is trying to install both on macOS, even though only cffi_mac should be installed. The Solution
macOS-only dependencypyobjc = {version = "*", markers="sys_platform == 'darwin'"} Use a single entry with conditional markers:
The key insight is that by including both file and version in the same entry, Pipenv will use the local wheel file on macOS (due to the marker) and fall back to the PyPI version on Windows. Why This Works Additional Notes If you're still having issues, you can try manually installing the wheel files first: pipenv run pip install --force-reinstall build/mac/websockets-15.0.1-cp313-cp313-macosx_11_0_universal2.whl This approach should resolve the platform-specific dependency issues you're experiencing with Pipenv. |
Uh oh!
There was an error while loading. Please reload this page.
This is an old issue that was supposably fixed but when configuring mac wheels on windows it's still trying to install them and run into errors like this when running
pipenv install
And vice versa on mac I have to remove the windows selected package for the same reason.
On mac having these two lines in the file fails from a supposed fix.
With errors like
Full pipenv file
The text was updated successfully, but these errors were encountered: