FS#71399 - [csound] ctcsound.py is missing

Attached to Project: Community Packages
Opened by Antoine Marcotte (a1ro) - Tuesday, 29 June 2021, 18:30 GMT
Last edited by Brett Cornwall (ainola) - Thursday, 01 July 2021, 01:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Brett Cornwall (ainola)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

After installing csound 6.16.0-3 from the community repo, I noticed that the file `ctcsound.py` was missing from the package list (pacman -Ql csound | grep ctcsound).

Instead, if I build csound (with the exact same PKGBUILD), I get an extra file in the package: `/usr/lib/python3.9/site-packages/ctcsound.py`.

Looking at [those lines][1] from upstream, it seems like `python3` needs to be installed simply to output the path to site-packages. If the command fails, `ctcsound.py` does not get copied over during build.

To reproduce this bug, I renamed `/usr/bin/python3` to something else, then rebuilt csound. As `python3` could not be found, `ctcsound.py` was missing from the package list (as expected).

I'm not sure how to properly solve this and make sure the file is included in csound package. Adding `python` as a "makedepends" seems overkill...

Let me know if I can help and thanks for updating to the new release!

---

Background info:

[ctcsound][2] is a "Python wrapper module to the Csound API".

Not to be confused with the [Python Opcodes][3], providing `libpy.so`, which have been moved outside of the main repo.

---

[1]: https://github.com/csound/csound/blob/develop/interfaces/CMakeLists.txt#L90-L104
[2]: https://github.com/csound/ctcsound
[3]: https://github.com/csound/plugins/tree/master/py
This task depends upon

Closed by  Brett Cornwall (ainola)
Thursday, 01 July 2021, 01:34 GMT
Reason for closing:  Implemented
Additional comments about closing:  python is now a make dependency for csound in csound-6.16.0-5.
Comment by Brett Cornwall (ainola) - Thursday, 01 July 2021, 01:29 GMT
Thank you for such a detailed bug report! I'll be sure to fix that ASAP.

Loading...