changeset 1194:756bc885a573

modifying makefile to avoid installing with pip and sudo
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 30 Jun 2022 18:09:20 +0200
parents d324305c1240
children 27a6a7f9b972
files Makefile
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Jun 30 18:05:02 2022 +0200
+++ b/Makefile	Thu Jun 30 18:09:20 2022 +0200
@@ -13,19 +13,22 @@
 
 installpython:
 	@echo "========================================="
-	@echo "Installing Python modules and scripts"
+	@echo "Installing Python modules (in user space)"
 	@tar cf /tmp/trafficintelligence.tar setup.py README trafficintelligence
 	@gzip /tmp/trafficintelligence.tar
 	@pip3 install /tmp/trafficintelligence.tar.gz
 	@rm /tmp/trafficintelligence.tar.gz
-	@cp scripts/* $(INSTALL_DIR)
+installpythonscripts:
+	@echo "========================================="
+	@echo "Installing Python scripts"
+	@cp scripts/*.py $(INSTALL_DIR)
 uploadpython:
 	@python setup.py sdist
 	@twine upload dist/* --skip-existing
 	#python setup.py sdist upload
 	#python setup.py sdist bdist_wheel
 
-install: cexe installpython
+install: cexe installpythonscripts
 	@echo "========================================="
 	@echo "Installing for Linux"
 	@echo "========================================="