-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Incorrect wheel tag for platform-dependent packages on PyPy #1820
Comments
Might be related to #1616. There seems to be issues with platform detection in general. |
I did found this issue when working around #1616. If I install one package from wheel on CPython, a differently named package from wheel on PyPy, then I can install dependencies for the proper platform. However, if I build the platform-dependent wheel for PyPy using Poetry, I get the incorrect wheel tag and it isn't installable. A fix is to use |
|
Connecting related issue. #3509 |
For anyone else waiting on this fix, the following shell script may be sufficient as a temporary workaround: #!/bin/bash
# Rename the wheel file to match the currently active python version
wheel_file=$(find dist/ -type f -name '*.whl')
echo "Renaming ${wheel_file}"
python_ver=$(python -c 'import platform; print("".join(platform.python_version_tuple()[:2]))')
echo "Using Python version: ${python_ver}"
new_wheel_file=$(echo ${wheel_file} | sed "s/-cp[0-9]*/-cp${python_ver}/g")
echo "New wheel file name: ${new_wheel_file}"
mv ${wheel_file} ${new_wheel_file} |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Debian GNU/Linux 10 (buster)
Poetry version: 1.0.0
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/mmaslowskicc/7485e795e3c8fec873515981293fd17c
Issue
When running on PyPy and having the
build
key inpyproject.toml
, Poetry chooses a wheel tags that is not supported by the platform, so it cannot be installed afterwards.When running
docker build .
with files from the linked Gist:A proper wheel tag would contain
pp373
instead ofpp369
: this runs on PyPy 7.3.0 (which is otherwise compatible with Python 3.6.9).The text was updated successfully, but these errors were encountered: