Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
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
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
|
DetailsThe __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
Saturday, 04 April 2020, 21:18 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with python-cytoolz 0.10.1-3
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.
I'm surprised when I built it locally, it did work with just build_ext. One of life's mysteries I guess!