Skip to content
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

Build fails when building on an environment without gcc #45

Open
ken-unio opened this issue Nov 21, 2024 · 2 comments
Open

Build fails when building on an environment without gcc #45

ken-unio opened this issue Nov 21, 2024 · 2 comments

Comments

@ken-unio
Copy link

When building a project with bitstruct in a minimal docker container without gcc, the container build fails as the bitstruct.c dependencies cannot find the gcc compiler.

As the C extensions are optional, I would have expected a warning to be printed but not have the entire build fail if they were not able to be compiled.

gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/tmp/tmpj689ldeb/.venv/include -I/usr/local/include/python3.12 -c src/bitstruct/bitstream.c -o build/temp.linux-aarch64-cpython-312/src/bitstruct/bitstream.o
#10 94.63   error: command 'gcc' failed: No such file or directory
#10 94.63   
#10 94.63 
#10 94.63   at /usr/local/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
#10 94.68       160│ 
#10 94.68       161│                 error = ChefBuildError("\n\n".join(message_parts))
#10 94.68       162│ 
#10 94.68       163│             if error is not None:
#10 94.68     → 164│                 raise error from None
#10 94.68       165│ 
#10 94.68       166│             return path
#10 94.68       167│ 
#10 94.68       168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Pat
@zariiii9003
Copy link
Contributor

Could you try PR #44?

@eerimoq
Copy link
Owner

eerimoq commented Nov 30, 2024

Tons on changes. Are all really necessary? Why use scikit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants