Community Packages

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!
| Tasklist |

FS#78524 - [xrootd] Python bindings in wrong directory due to missing `python-pip` in makedepends

Attached to Project: Community Packages
Opened by Sören Fleischer (sfleisch.gsi) - Monday, 15 May 2023, 15:06 GMT
Last edited by Toolybird (Toolybird) - Monday, 15 May 2023, 21:12 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Konstantin Gizdov (kgizdov)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

The XRootD Python bindings in this package reside at
usr/lib/python3.11/site-packages/xrootd-5.5.4-py3.11-linux-x86_64.egg/XRootD/
usr/lib/python3.11/site-packages/xrootd-5.5.4-py3.11-linux-x86_64.egg/pyxrootd/
where they are not found by Python.

```
[vagrant@tc ~]$ python -c "import XRootD"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'XRootD'
[vagrant@tc ~]$
```

They should be at
usr/lib/python3.11/site-packages/XRootD/
usr/lib/python3.11/site-packages/pyxrootd/

This can be solved by adding `python-pip` to `makedepends`.

```
$ diff PKGBUILD PKGBUILD.original
13c13
< makedepends=('cmake' 'git' 'python-pip')
---
> makedepends=('cmake' 'git')
```

The resulting package then has the bindings at the right place and Python can find them.

```
$ python -c "import XRootD"
[vagrant@tc ~]$
```

Additional info:
* package version(s)
xrootd 5.5.4 or 5.5.5
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Loading...