FS#70821 - [usd] python files are installed to /usr/lib/python instead of /usr/lib/python3*

Attached to Project: Community Packages
Opened by Ashley Ruglys (ashley) - Wednesday, 12 May 2021, 14:45 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 12 May 2021, 16:08 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Package version: 21.02-1

Description: The python files are installed to the wrong directory, which means python cannot access them:

```
python
Python 3.9.5 (default, May 9 2021, 14:00:28)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pxr
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pxr'
```

This is presumably caused by the way cmake/ninja is setup to install the files.

Steps to reproduce:

1) Add the following to the bottom of the PKGBUILD:

```
check() {
python3 -c 'import pxr'
}

```

2) Run `extra-x86_64-build .`

3) The package should be built and the check fails with:

```
==> Starting check()...
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pxr'
==> ERROR: A failure occurred in check().
Aborting...
```
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Wednesday, 12 May 2021, 16:08 GMT
Reason for closing:  Fixed

Loading...