I stumbled on this while testing pipx for python 3.8 compatibility and wanted to report it here.
python --version
Python 3.8.0b3
pip install pyzmq
...
In file included from /home/csmith/Downloads/Python-3.8.0b3/Include/compile.h:5:0,
from /home/csmith/Downloads/Python-3.8.0b3/Include/Python.h:138,
from zmq/backend/cython/_device.c:4:
/home/csmith/Downloads/Python-3.8.0b3/Include/code.h:122:28: note: declared here
PyAPI_FUNC(PyCodeObject *) PyCode_New(
^~~~~~~~~~
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /tmp/pvenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6mnvkxwv/pyzmq/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6mnvkxwv/pyzmq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-57y2pv8f/install-record.txt --single-version-externally-managed --compile --install-headers /tmp/pvenv/include/site/python3.8/pyzmq Check the logs for full command output.
Full log: https://gist.github.com/cs01/174f417c0857e11d9beffa4d17e600ac
I believe the sdist may contain rendered Cython sources. Installing from the repo using latest cython work for me either way as workaround for now.
Building from sources with python 3.8.0b3 and latest cython also working for me. Issue only when using pip.
Yes, I need to publish another release with latest Cython, then I think it should be okay. I'll try to do that this week.
Published 18.1 with latest cython, so this should work on 3.8b3
Most helpful comment
Published 18.1 with latest cython, so this should work on 3.8b3