(.venv) [jdanek@fedora dtests]$ python3 -m pip install cryptography
INFO: Choosing GraalPy tested version 3.4.7 for cryptography
Collecting cryptography==3.4.7
WARNING: Cache entry deserialization failed, entry ignored
Downloading cryptography-3.4.7.tar.gz (546 kB)
|████████████████████████████████| 546 kB 36 kB/s
Looking for GraalPy patches for cryptography
Patching package cryptography using /home/jdanek/Downloads/graalvm-ce-java17-22.3.1/languages/python/lib-graalpython/patches/cryptography/sdist/cryptography-3.4.7.patch
patching file setup.py
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
INFO: Choosing GraalPy tested version 7 for pytest>=6.0; extra == "test"
Requirement already satisfied: cffi>=1.12 in ./.venv/lib/python3.8/site-packages (from cryptography==3.4.7) (1.15.1)
Requirement already satisfied: pycparser in ./.venv/lib/python3.8/site-packages (from cffi>=1.12->cryptography==3.4.7) (2.21)
Building wheels for collected packages: cryptography
Building wheel for cryptography (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /home/jdanek/repos/testing/dtests/.venv/bin/graalpy /home/jdanek/repos/testing/dtests/.venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp6glnrsd7
cwd: /tmp/pip-install-2e_woqk8/cryptography
Complete output (477 lines):
Traceback (most recent call last):
File "/home/jdanek/repos/testing/dtests/.venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
main()
File "/home/jdanek/repos/testing/dtests/.venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/jdanek/repos/testing/dtests/.venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 204, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-unpacked-wheel-rcdramdd/setuptools/build_meta.py", line 413, in build_wheel
File "/tmp/pip-unpacked-wheel-rcdramdd/setuptools/build_meta.py", line 398, in _build_with_temp_dir
File "/tmp/pip-unpacked-wheel-rcdramdd/setuptools/build_meta.py", line 335, in run_setup
File "<string>", line 152, in <module>
File "/tmp/pip-build-env-obaxx3wv/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-obaxx3wv/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/tmp/pip-build-env-obaxx3wv/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-unpacked-wheel-rcdramdd/setuptools/_distutils/dist.py", line 969, in run_commands
File "/tmp/pip-unpacked-wheel-rcdramdd/setuptools/dist.py", line 1221, in run_command
File "/tmp/pip-unpacked-wheel-rcdramdd/setuptools/_distutils/dist.py", line 988, in run_command
File "/tmp/pip-unpacked-wheel-u9u704y2/wheel/bdist_wheel.py", line 380, in run
File "/tmp/pip-unpacked-wheel-u9u704y2/wheel/bdist_wheel.py", line 329, in get_tag
AssertionError: would build wheel with unsupported tag ('graalpy38', 'graalpy_38_native_x86_64_linux', 'linux_i686')
----------------------------------------
ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
$ cat /etc/redhat-release
Fedora release 38 (Thirty Eight)
$ uname -a
Linux fedora 6.2.8-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 22 19:29:30 UTC 2023 x86_64 GNU/Linux
Since
pip installactually picks up older 3.4.7, I hoped this will work, but it did not[...]
I have graalvm-ce-java17-22.3.1