Skip to content

build wheel pysha3 extension #77

Description

@robomotic

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions