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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by loqs (loqs) - Sunday, 13 September 2020, 16:48 GMT

Loading...