FS#68829 - [python-pyserial] miniterm and list-ports not in package archive

Attached to Project: Community Packages
Opened by Jonathan Kotta (jpkotta) - Wednesday, 02 December 2020, 23:12 GMT
Last edited by Morten Linderud (Foxboron) - Wednesday, 17 March 2021, 22:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Pyserial comes with two commands that should be executable and in the PATH. The names recently changed to pyserial-miniterm and pyserial-ports. If I build the package locally with makepkg on the 3.5-1 PKGBUILD it installs those files to /usr/bin with execute permission, as intended. The package archive I recently installed from the package mirrors is missing these files.

On a related note, if these commands are installed as intended, they have the same name in the python2 variant and thus generate a conflict.
This task depends upon

Closed by  Morten Linderud (Foxboron)
Wednesday, 17 March 2021, 22:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.5-2
Comment by Jonathan Kotta (jpkotta) - Wednesday, 02 December 2020, 23:13 GMT
Sorry, I should have added [python-pyserial] to the title.
Comment by Christopher Arndt (SpotlightKid) - Friday, 11 December 2020, 00:35 GMT
This is probably because PKGBUILD does not have `python-setuptools` in makedepends. The executables are installed via a `console_script` entry point in the [setup.py](https://github.com/pyserial/pyserial/blob/0e7634747568547b8a7f9fd0c48ed74f16af4b23/setup.py#L99), which requires to run `python setup.py install` with `setuptools` (the `pyserial` `setup.py` falls back to using `distutils` from the Python standard library, if `setuptools` is not available.)

NB: it used to be that `setupttools` was a *run-time* dependency for scripts installed via `console_script` entry points, but that has changed with recent `setuptools` versions.
Comment by Christopher Arndt (SpotlightKid) - Friday, 11 December 2020, 00:57 GMT
Proposed PKGBUILD changes attached.

Loading...