Closed xHire closed 3 years ago
Hello,
In my opinion, the source tarball should be platform-independent.
This was my intention, yes.
The following patch fixes the problem:
Would the following work for you ? This fixes my release process (setup.sh
), which needs the bdist_wheel
command, which does not exist when wheel
is removed from setup_requires
(...oh the fun of python packaging).
diff --git a/setup.py b/setup.py
index bf6a3bf..3375a20 100644
--- a/setup.py
+++ b/setup.py
@@ -171,9 +171,11 @@ setup(
'Topic :: Software Development :: Libraries',
'Topic :: System :: Hardware :: Hardware Drivers',
],
- setup_requires=[
- 'wheel',
- ],
+ setup_requires=(
+ ['wheel']
+ if 'bdist_wheel' in sys.argv else
+ []
+ ),
use_2to3=True,
test_suite='usb1.testUSB1',
)
Hello! I’ve just tested your patch and it builds fine too. :·) Thank you!
Thanks, pushed in master. I intend to release this fix as 1.9.2 soon.
Released.
Recent addition of
wheel
as a setup dependency broke the installation on my Gentoo Linux system using this ebuild I wrote.(Yes, the build process is sandboxed.)
The following patch fixes the problem: https://github.com/xHire/overlay/blob/master/dev-python/libusb1/files/libusb1-1.9.1-no_wheel_dependency.patch
In my opinion, the source tarball should be platform-independent. Unless I’m mistaken,
wheel
is only needed for Windows builds. It isn’t even packaged for Gentoo Linux. And python-libusb1 does build totally fine without it.