depot/third_party/nixpkgs/pkgs/tools/misc/system-config-printer/pep517.patch
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

16 lines
676 B
Diff

--- a/Makefile.am
+++ b/Makefile.am
@@ -59,11 +59,11 @@ dbus/org.fedoraproject.Config.Printing.service: dbus/org.fedoraproject.Config.Pr
# Use distutils to build the module.
all-local: .stamp-distutils-in-builddir config.py cupshelpers/config.py
- $(PYTHON) setup.py build
+ $(PYTHON) -m build --no-isolation --outdir dist/ --wheel
# Use distutils to install the module.
install-exec-local: .stamp-distutils-in-builddir
- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+ $(PYTHON) -m installer --prefix=$(prefix) dist/*.whl
# Uninstall the module, crossing our fingers that we know enough
# about how distutils works to do this. Unfortunately, distutils