Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpmbuild fails for uhal-python when using python 3.9 on centos 7 #241

Open
alkis-pap opened this issue Mar 17, 2021 · 1 comment
Open

rpmbuild fails for uhal-python when using python 3.9 on centos 7 #241

alkis-pap opened this issue Mar 17, 2021 · 1 comment

Comments

@alkis-pap
Copy link

When I tried to create rpm files for uhal-python on centos 7 I got this error:

error: Installed (but unpackaged) file(s) found:
   /usr/local/lib/python3.9/site-packages/uhal/__init__.pyc
   /usr/local/lib/python3.9/site-packages/uhal/__init__.pyo

I fixed it by adding the following option to the rpmbuild command in uhal/config/mfPythonRPMRules.mk (line 58):
--define '_unpackaged_files_terminate_build 0'

Also, since I have installed python 3.9 from source instead of using yum, python39 is not installed as an rpm package therefore I had to remove ${PYTHON_RPM_CAPABILITY} from line 49 in the same file.

@tswilliams
Copy link
Collaborator

Hi,

Do the __init__.pyc and __init__.pyo files exist under uhal/python/pkg/uhal before the make rpm command is run? If not, I suspect this might be tricky to solve, and since Python 3.9 RPMs aren't available for CentOS7, it might take me a while to be able to reproduce the setup.

Overall though, since Python itself is not RPM, in this case rather than build RPMs it might make most sense just to directly install the Python bindings; this can be done as follows:

cd uhal/python
make install

Cheers,
Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants