Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

0.4: pep517 build issue #53

Open
kloczek opened this issue Dec 31, 2021 · 0 comments
Open

0.4: pep517 build issue #53

kloczek opened this issue Dec 31, 2021 · 0 comments

Comments

@kloczek
Copy link

kloczek commented Dec 31, 2021

I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w
  • install .whl file in </install/prefix>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Looks like pip fails on install generated .whl archive.
I'm using python 3.8.12.

+ /usr/bin/python3 -sBm build -w
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools >= 40.8.0, wheel)
* Getting dependencies for wheel...
running egg_info
creating pytest_toolbox.egg-info
writing manifest file 'pytest_toolbox.egg-info/SOURCES.txt'
writing manifest file 'pytest_toolbox.egg-info/SOURCES.txt'
* Installing packages in isolated environment... (wheel)
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/pytest_toolbox
copying pytest_toolbox/__init__.py -> build/lib/pytest_toolbox
copying pytest_toolbox/main.py -> build/lib/pytest_toolbox
copying pytest_toolbox/version.py -> build/lib/pytest_toolbox
copying pytest_toolbox/comparison.py -> build/lib/pytest_toolbox
running egg_info
writing manifest file 'pytest_toolbox.egg-info/SOURCES.txt'
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/pytest_toolbox
running install_egg_info
Copying pytest_toolbox.egg-info to build/bdist.linux-x86_64/wheel/pytest_toolbox-0.5-py3.8.egg-info
running install_scripts
Successfully built pytest_toolbox-0.5-py35+-none-any.whl
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Z0qJp0
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ '[' /home/tkloczko/rpmbuild/BUILDROOT/python-pytest-toolbox-0.4-10.fc35.x86_64 '!=' / ']'
+ rm -rf /home/tkloczko/rpmbuild/BUILDROOT/python-pytest-toolbox-0.4-10.fc35.x86_64
+ /usr/bin/mkdir -p /home/tkloczko/rpmbuild/BUILDROOT/python-pytest-toolbox-0.4-10.fc35.x86_64
+ cd pytest-toolbox-0.4
+ /usr/bin/python3 -sBm pip install -I dist/pytest_toolbox-0.5-py35+-none-any.whl --root /home/tkloczko/rpmbuild/BUILDROOT/python-pytest-toolbox-0.4-10.fc35.x86_64 --no-deps --no-index --no-warn-script-location
ERROR: pytest_toolbox-0.5-py35+-none-any.whl is not a supported wheel on this platform.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant