-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
python310Packages.aiohttp: add missing build inputs: setuptools, wheel #212602
Conversation
Let me know if this should go to staging instead. It isn't urgent. |
Please share the full trace. It is not obvious here where it fails. I think it fails during a test and not the build but cannot be sure from this. |
|
Thanks. Checking the trace, it seems to fail during wheel building. Looking at the expression, it seems the build system is not added. It does manage to get access to it via the runtime dependencies ( You can add instead of your current fix nativeBuildInputs = [
setuptools
wheel
]; to solve this. Also please follow the contribution guidelines when it comes to the commit title. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please follow the contribution guidelines when it comes to the commit title.
See PR title.
@@ -46,6 +48,11 @@ buildPythonPackage rec { | |||
--replace "charset-normalizer >=2.0, < 3.0" "charset-normalizer >=2.0, < 4.0" | |||
''; | |||
|
|||
nativeBuildInputs = [ | |||
setuptools | |||
wheel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FRidh Why wheel
? It's not specified in upstream's pyproject.toml
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wheel package is always needed to make a wheel. Maybe we get away with it because pip that we instruct to build the wheel brings it in. I don't know anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit message should start with e.g. python310Packages.
. Please target staging.
Builds of aiohttpd have been failing on powerpc64le since 4553e62 with: ``` python3.10-aiohttp> File "/nix/store/mhw4rs4xb20acvn55iw5i5k5rhaqidnq-python3-3.10.9/lib/python3.10/importlib/__init__.py", line 126, in import_module python3.10-aiohttp> return _bootstrap._gcd_import(name[level:], package, level) python3.10-aiohttp> File "<frozen importlib._bootstrap>", line 1050, in _gcd_import python3.10-aiohttp> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load python3.10-aiohttp> File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked python3.10-aiohttp> File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed python3.10-aiohttp> File "<frozen importlib._bootstrap>", line 1050, in _gcd_import python3.10-aiohttp> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load python3.10-aiohttp> File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked python3.10-aiohttp> ModuleNotFoundError: No module named 'setuptools' python3.10-aiohttp> note: keeping build directory '/nix/tmp/nix-build-python3.10-aiohttp-3.8.3.drv-5' ``` This commit adds `setuptools` and `wheel` as `nativeBuildInputs` to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed that this fixes cross-compiling to armv6l-linux. The build still succeeds without wheel
, but I don't know why it should or shouldn't be included.
This can wait until after ZHF. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not tested but I don't see any reason why this would break anything.
Fixed with #247310 |
Description of changes
Builds of aiohttpd have been failing on powerpc64le since 4553e62 with:
This commit adds
python3Packages.setuptools
as apropagatedBuildInput
, which many other python packages seem to do. It fixes the build. I don't know much python, so if there is a better/preferred way to address this please let me know.Things done