-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
See eg https://travis-ci.com/github/Toblerity/Shapely/jobs/449571465
building 'pygeos._geometry' extension
creating build/temp.linux-x86_64-3.5/pygeos
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -DGEOS_USE_ONLY_R_API -I/opt/python/3.5.6/include/python3.5m -I/tmp/pip-build-env-q1gxo6qq/overlay/lib/python3.5/site-packages/numpy/core/include -c pygeos/_geometry.c -o build/temp.linux-x86_64-3.5/pygeos/_geometry.o
In file included from /tmp/pip-build-env-q1gxo6qq/overlay/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1809:0,
from /tmp/pip-build-env-q1gxo6qq/overlay/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /tmp/pip-build-env-q1gxo6qq/overlay/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from pygeos/_geometry.c:630:
/tmp/pip-build-env-q1gxo6qq/overlay/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
pygeos/_geometry.c:633:19: fatal error: c_api.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Building wheel for pygeos (PEP 517) ... error
ERROR: Failed building wheel for pygeos
Failed to build pygeos
ERROR: Could not build wheels for pygeos which use PEP 517 and cannot be installed directly
So it doesn't seem to find src/c_api.h ("pygeos/_geometry.c:633:19: fatal error: c_api.h: No such file or directory").
This probably started with the addition of cython (#197), but from looking at that diff, it seems to be correctly adding "src" to the include_dirs.
And I also can't reproduce it locally.
Metadata
Metadata
Assignees
Labels
No labels