FS#64670 - [python-psutil] package installs its setup.py and test scripts

Attached to Project: Community Packages
Opened by Chris Billington (chrisjbillington) - Thursday, 28 November 2019, 04:54 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 22 February 2020, 20:40 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
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-psutil (but not python2-psutil) installs its setup.py and a bunch of scripts that are for testing. The setup.py is directly in site-packages (i.e. `import setup` from a python interpreter in any working directory imports it).

in the PKGBUILD these are copied into the build directory in `check()`, which seems to mean they get installed by `python setup.py ...` later.

The setup.py and scripts probably shouldn't be installed, as they're not part of the intended package (i.e. are not installed by a pip install) and they're not namespaced in the filesystem so collision isn't super unlikely.

Perhaps they should be rm'd from the build directory at the end of `check()`?
This task depends upon

Closed by  Jelle van der Waa (jelly)
Saturday, 22 February 2020, 20:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 5.7.0-1

Loading...