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

Set installation root dir from setup.py #361

Merged
merged 1 commit into from
May 6, 2024

Conversation

rffontenelle
Copy link
Contributor

Fixes #357 #355

@@ -63,7 +63,7 @@ all-local: .stamp-distutils-in-builddir config.py cupshelpers/config.py

# Use distutils to install the module.
install-exec-local: .stamp-distutils-in-builddir
$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
$(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(DESTDIR)$(prefix)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Rafael,

thank you for the PR!

Actually the similar fix was brought into Fedora when Python 3.12 was introduced and it works fine since that:

--- a/Makefile.am
+++ b/Makefile.am
@@ -63,7 +63,7 @@ all-local: .stamp-distutils-in-builddir config.py cupshelpers/config.py
 
 # Use distutils to install the module.
 install-exec-local: .stamp-distutils-in-builddir
-       $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+       $(PYTHON) setup.py install --root $(DESTDIR) --prefix=$(prefix)
 
 # Uninstall the module, crossing our fingers that we know enough
 # about how distutils works to do this.  Unfortunately, distutils

I see the same patch was used in other project - AOSC-Dev/aosc-os-abbs@7b298dd - so I will go with this fix.

But either way thank you for PR! I'll merge it and then update it to match with Fedora changes.

@zdohnal zdohnal merged commit 94ed601 into OpenPrinting:master May 6, 2024
2 checks passed
@rffontenelle rffontenelle deleted the patch-1 branch May 6, 2024 13:52
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

Successfully merging this pull request may close these issues.

system-config-printer No module named 'cupshelpers'
2 participants