MagicStack/httptools

Fail to get wheel for python 3.9.5 when pip install

Closed this issue · 0 comments

I see #59 has provide a wheel for python 3.9,but pip install always Using a httptools-0.4.0.tar.gz and try to build it:

Collecting httptools
Using cached httptools-0.4.0.tar.gz (174 kB)
Building wheels for collected packages: httptools
Building wheel for httptools (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /root/bdpcs/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-juft92g0/httptools_a0b7a1122cdc4a3286d13ff65aa3e8d6/setup.py'"'"'; file='"'"'/tmp/pip-install-juft92g0/httptools_a0b7a1122cdc4a3286d13ff65aa3e8d6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-tr0dacp_
cwd: /tmp/pip-install-juft92g0/httptools_a0b7a1122cdc4a3286d13ff65aa3e8d6/
Complete output (36 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/httptools
copying httptools/init.py -> build/lib.linux-x86_64-3.9/httptools
copying httptools/_version.py -> build/lib.linux-x86_64-3.9/httptools
creating build/lib.linux-x86_64-3.9/httptools/parser
copying httptools/parser/init.py -> build/lib.linux-x86_64-3.9/httptools/parser
copying httptools/parser/errors.py -> build/lib.linux-x86_64-3.9/httptools/parser
running egg_info
writing httptools.egg-info/PKG-INFO
writing dependency_links to httptools.egg-info/dependency_links.txt
writing requirements to httptools.egg-info/requires.txt
writing top-level names to httptools.egg-info/top_level.txt
adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
reading manifest file 'httptools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'httptools.egg-info/SOURCES.txt'
copying httptools/parser/parser.c -> build/lib.linux-x86_64-3.9/httptools/parser
copying httptools/parser/url_parser.c -> build/lib.linux-x86_64-3.9/httptools/parser
running build_ext
building 'httptools.parser.parser' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/httptools
creating build/temp.linux-x86_64-3.9/httptools/parser
creating build/temp.linux-x86_64-3.9/vendor
creating build/temp.linux-x86_64-3.9/vendor/llhttp
creating build/temp.linux-x86_64-3.9/vendor/llhttp/src
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/tmp/pip-install-juft92g0/httptools_a0b7a1122cdc4a3286d13ff65aa3e8d6/vendor/llhttp/include -I/tmp/pip-install-juft92g0/httptools_a0b7a1122cdc4a3286d13ff65aa3e8d6/vendor/llhttp/src -I/root/bdpcs/include -I/usr/include/python3.9 -c httptools/parser/parser.c -o build/temp.linux-x86_64-3.9/httptools/parser/parser.o -O2
httptools/parser/parser.c:22:10: fatal error: Python.h: No such file or directory
22 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1

ERROR: Failed building wheel for httptools