merkly
merkly copied to clipboard
build wheel pysha3 extension
Describe the bug
I am on Ubuntu 22.04 with UV package manager with Python 3.13.0 build with Clang 18.1.8 on a virtual environment.
To Reproduce (Example)
**I install the package with **
uv add merkly
And then get this Erro:
Resolved 70 packages in 33ms
error: Failed to prepare distributions
Caused by: Failed to download and build `pysha3==1.0.2`
Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)
[stdout]
running bdist_wheel
running build
running build_py
copying sha3.py -> build/lib.linux-x86_64-cpython-313
running build_ext
building '_pysha3' extension
clang -pthread -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -fPIC -fPIC -DPY_WITH_KECCAK=1 -I/home/robomotic/.cache/uv/builds-v0/.tmppuDkyk/include -I/home/robomotic/.local/share/uv/python/cpython-3.13.0-linux-x86_64-gnu/include/python3.13 -c Modules/_sha3/sha3module.c -o build/temp.linux-x86_64-cpython-313/Modules/_sha3/sha3module.o
[stderr]
In file included from Modules/_sha3/sha3module.c:20:
Modules/_sha3/backport.inc:78:10: fatal error: 'pystrhex.h' file not found
#include "pystrhex.h"
^~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
Anvironment (please complete the following information):
- OS: Ubuntu 22.10
Seems to be related to: https://github.com/Polymarket/py-clob-client/issues/82
Should we not move everything to hashlib since pysha3 is basically legacy now? https://docs.python.org/3/library/hashlib.html