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 Konstantin Gizdov (kgizdov) - Wednesday, 17 May 2023, 13:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Konstantin Gizdov (kgizdov)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
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

Closed by  Konstantin Gizdov (kgizdov)
Wednesday, 17 May 2023, 13:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  xrootd 5.5.5-1

Loading...