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

Teste Cython #9

Closed
staticdev opened this issue May 28, 2019 · 2 comments
Closed

Teste Cython #9

staticdev opened this issue May 28, 2019 · 2 comments

Comments

@staticdev
Copy link
Contributor

Olá Thales,

Já que vai fazer commits, poderia aproveitar e trocar o setup.py e o requirements para usar o Cython-0.29.7? Vou tentar gerar uma imagem pra microservicos menor usando o alpine com um comando que descobri aqui:

docker-library/python#312

Aí aproveito e faço uma versão nova tb.

Abraços

@staticdev staticdev mentioned this issue Jun 12, 2019
@staticdev
Copy link
Contributor Author

staticdev commented Jun 19, 2019

@tfcbertaglia testei aqui com o python 3.6.8 (que eu estou usando há algum tempo) e está dando erro na hora de rodar o setup.py install:

gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I. -I/usr/local/include/python3.6m -c enelvo/metrics/cythonlcs.c -o build/temp.linux-x86_64-3.6/enelvo/metrics/cythonlcs.o
/usr/local/lib/python3.6/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /app/temp/enelvo/metrics/cythonlcs.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
error: command 'gcc' failed with exit status 1

Parece que no 3.7.3 não dá esse erro, estou fazendo outras tentativas.

@staticdev
Copy link
Contributor Author

staticdev commented Jun 20, 2019

Descobri o que era.. estava removendo gcc da imagem antes de fazer o setup.. esse conjunto de requirements que mandei funciona.

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

1 participant