Closed zxln007 closed 1 month ago
Could you apply the following patch and test whether this solves your problem?
--- a/Makefile.am
+++ b/Makefile.am
@@ -63,7 +63,7 @@
# 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
@tillkamppeter I tested and can confirm the above error message is gone. System: Arch Linux 64-bit, system-config-printer 1.5.18
After applying the above patch, the output is:
make[2]: Entering directory '/build/system-config-printer/src/system-config-printer-1.5.18'
/usr/bin/python setup.py install --root=/build/system-config-printer/pkg/system-config-printer --prefix=/usr
/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
@tillkamppeter And also fixes #357
Fixed by #361 .
build log:
what can i do to fix it ?
thanks