FS#66109 - [python-cytoolz] __init__.py not included in package

Attached to Project: Community Packages
Opened by Blair Bonnett (bcb) - Saturday, 04 April 2020, 10:23 GMT
Last edited by David Runge (dvzrv) - Saturday, 04 April 2020, 21:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The __init__.py file is not included in the package with python-cytoolz 0.10.1-2, only the .so libraries are:

$ tar --list -f /var/cache/pacman/pkg/python-cytoolz-0.10.1-2-x86_64.pkg.tar.zst
< ... files not in the package directory cut ... >
usr/lib/python3.8/site-packages/cytoolz/dicttoolz.cpython-38-x86_64-linux-gnu.so
usr/lib/python3.8/site-packages/cytoolz/functoolz.cpython-38-x86_64-linux-gnu.so
usr/lib/python3.8/site-packages/cytoolz/itertoolz.cpython-38-x86_64-linux-gnu.so
usr/lib/python3.8/site-packages/cytoolz/recipes.cpython-38-x86_64-linux-gnu.so
usr/lib/python3.8/site-packages/cytoolz/utils.cpython-38-x86_64-linux-gnu.so

This means standard usage such as "from cytoolz import merge" does not work. In turn, this means the tlz package included in python-toolz (to automatically import from cytoolz if it exists or otherwise use the toolz version) fails, which causes libraries using tlz to also fail.

If I download the PKGBUILD and build it locally, then the __init__.py is included in the package, along with the .pxd and .pyx Cython sources, the .pyc compiled files and all the tests. To me this implies the build server is stripping this stuff out, but I have no idea how the server is configured so this is just a guess.
This task depends upon

Closed by  David Runge (dvzrv)
Saturday, 04 April 2020, 21:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with python-cytoolz 0.10.1-3
Comment by David Runge (dvzrv) - Saturday, 04 April 2020, 20:21 GMT
@bcb: Thanks for the report.

It seems I needed to run `python setup.py build`. I assumed that just running `python setup.py build_ext` would do the job (but that apparently only builds the C extensions).
Please check, whether the latest revision fixes this for you.
Comment by Blair Bonnett (bcb) - Saturday, 04 April 2020, 21:10 GMT
@dvzrv: Yep, thats fixed it. Thanks for the quick response.

I'm surprised when I built it locally, it did work with just build_ext. One of life's mysteries I guess!

Loading...