diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 6bf1e5f..b7622a3 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -17,7 +17,7 @@ endif
 if MAKE_PYKAT_INSTALL
 
 install-exec-hook:
-	$(PYTHON_INT_PATH) setup.py install --record install_files.txt
+	python -m pip install . --ignore-installed --no-deps -vv --no-use-pep517
 
 uninstall-hook:
 	cat install_files.txt | xargs rm -rf
@@ -29,7 +29,7 @@ endif
 if MAKE_PYKAT_INSTALL_CUSTOM
 
 install-exec-hook:
-	$(PYTHON_INT_PATH) setup.py install --root=$(DESTDIR) --prefix=$(exec_prefix) --record install_files.txt
+	python -m pip install . --ignore-installed --no-deps -vv --no-use-pep517
 
 uninstall-hook:
 	cat install_files.txt | xargs rm -rf
