1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/security/swtpm/python-installation.patch
Arthur Gautier ac87ecd581 swtpm: init at 0.5.2
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
2021-02-22 04:37:43 +00:00

61 lines
1.7 KiB
Diff

commit 353794feb596d95e3f8893e39b174c5a89d1013e
Author: Arthur Gautier <baloo@superbaloo.net>
Date: Wed Feb 17 02:27:40 2021 +0000
python-install
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
diff --git a/samples/Makefile.am b/samples/Makefile.am
index 7d69bf8..1803bb9 100644
--- a/samples/Makefile.am
+++ b/samples/Makefile.am
@@ -39,19 +39,9 @@ python-uninstall:
$(PIP3) uninstall -y $(PY_PACKAGE_NAME)
if PYTHON_INSTALLATION
-install-exec-local: $(PY_PACKAGE)
- @if ! test $(findstring /usr, "$(DESTDIR)$(bindir)"); then \
- echo "Warning: Not installing python package to $(DESTDIR)$(bindir)"; \
- else \
- $(MAKE) python-install; \
- fi
+install-exec-local: python-install
-uninstall-local:
- @if ! test $(findstring /usr, "$(DESTDIR)$(bindir)"); then \
- echo "Cleanup for distcheck build not implemented" ; \
- else \
- $(MAKE) python-uninstall; \
- fi
+uninstall-local: python-uninstall
endif
diff --git a/src/swtpm_setup/Makefile.am b/src/swtpm_setup/Makefile.am
index 529eefe..533b1b3 100644
--- a/src/swtpm_setup/Makefile.am
+++ b/src/swtpm_setup/Makefile.am
@@ -29,19 +29,9 @@ python-uninstall:
$(PIP3) uninstall -y $(PY_PACKAGE_NAME)
if PYTHON_INSTALLATION
-install-exec-local: $(PY_PACKAGE)
- @if ! test $(findstring /usr, "$(DESTDIR)$(bindir)"); then \
- echo "Warning: Not installing python package to $(DESTDIR)$(bindir)"; \
- else \
- $(MAKE) python-install; \
- fi
+install-exec-local: python-install
-uninstall-local:
- @if ! test $(findstring /usr, "$(DESTDIR)$(bindir)"); then \
- echo "Cleanup for distcheck build not implemented" ; \
- else \
- $(MAKE) python-uninstall; \
- fi
+uninstall-local: python-uninstall
endif
# for out-of-tree builds we need to clean up