-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[python] fix platform specific wheel to be spec compliant #23703
[python] fix platform specific wheel to be spec compliant #23703
Conversation
PR #23703: Size comparison from 4c6b72d to 8411ede Increases (4 builds for cyw30739, telink)
Decreases (5 builds for nrfconnect, psoc6, telink)
Full report (49 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
PR #23703: Size comparison from 4c6b72d to 2f0890d Increases (4 builds for cyw30739, linux)
Decreases (5 builds for esp32, nrfconnect, psoc6, telink)
Full report (51 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
Hm, for some reason this fix seems not to work with the setuptools/distutils version which is part of the |
I added setuptools version to the constraints file by using @AnthonyDiGirolamo maybe you have thoughts on this? |
The current build approach causes bdist_wheel to store the shared library in the purelib folder. However, a platform specific wheel should have shared libraries in the platform specific folder, not in the purelib folder. This has been discovered using `auditwheel check`: ``` RuntimeError: Invalid binary wheel, found the following shared library/libraries in purelib folder: _ChipDeviceCtrl.so The wheel has to be platlib compliant in order to be repaired by auditwheel. ``` This makes the wheel pass `auditwheel check`.
PR #23703: Size comparison from 4c6b72d to 2a63cf8 Decreases (1 build for nrfconnect)
Full report (3 builds for mbed, nrfconnect)
|
2a63cf8
to
7863895
Compare
Actually, setuptools on master branch is new enough ( So this PR actually does what its advertising on master branch. It does apply on |
PR #23703: Size comparison from eb03243 to 7863895 Increases (4 builds for cc13x2_26x2, cyw30739, psoc6, telink)
Decreases (10 builds for bl602, bl702, cc13x2_26x2, nrfconnect, psoc6, telink)
Full report (33 builds for bl602, bl702, cc13x2_26x2, cyw30739, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
The current build approach causes bdist_wheel to store the shared library in the purelib folder. However, a platform specific wheel should have shared libraries in the platform specific folder, not in the purelib folder.
This has been discovered using
auditwheel check
:This makes the wheel pass
auditwheel check
.