FS#51798 - [python-numpy] Remove /usr/include/pythonX.Y/numpy symlink
Attached to Project:
Arch Linux
Opened by Antony Lee (anntzer) - Friday, 11 November 2016, 23:44 GMT
Last edited by freswa (frederik) - Saturday, 26 September 2020, 19:58 GMT
Opened by Antony Lee (anntzer) - Friday, 11 November 2016, 23:44 GMT
Last edited by freswa (frederik) - Saturday, 26 September 2020, 19:58 GMT
|
Details
Description:
python-numpy currently creates a symlink at /usr/include/pythonX.Y/numpy to /usr/lib/pythonX.Y.site-packages/numpy/core/include/numpy, in effect making the numpy headers available by default. This should not be the case (or this should be proposed as an upstream change). Instead, python packages that need to include such headers should explicitly add `np.get_include()` to the include directories, which is the required approach on any other distro or on a venv/conda install (see e.g. http://cython.readthedocs.io/en/latest/src/reference/compilation.html#configuring-the-c-build). Otherwise, it is easy to accidentally write packages that compile only when numpy is installed from the Arch package. |
This task depends upon
Closed by freswa (frederik)
Saturday, 26 September 2020, 19:58 GMT
Reason for closing: Fixed
Additional comments about closing: libkate 0.4.1-7
Saturday, 26 September 2020, 19:58 GMT
Reason for closing: Fixed
Additional comments about closing: libkate 0.4.1-7
[1] https://github.com/archlinux/svntogit-packages/commit/e0c1e445f6196a0bebeb1bc0a8e6c5ba479e7f9e