Mercurial > hg > nsaunier > traffic-intelligence
comparison Makefile @ 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 | f67b4f892195 |
| children | 5ac26907e3c3 |
comparison
equal
deleted
inserted
replaced
| 1193:d324305c1240 | 1194:756bc885a573 |
|---|---|
| 11 @cd c && make clean | 11 @cd c && make clean |
| 12 @cd trafficintelligence && rm *.pyc | 12 @cd trafficintelligence && rm *.pyc |
| 13 | 13 |
| 14 installpython: | 14 installpython: |
| 15 @echo "=========================================" | 15 @echo "=========================================" |
| 16 @echo "Installing Python modules and scripts" | 16 @echo "Installing Python modules (in user space)" |
| 17 @tar cf /tmp/trafficintelligence.tar setup.py README trafficintelligence | 17 @tar cf /tmp/trafficintelligence.tar setup.py README trafficintelligence |
| 18 @gzip /tmp/trafficintelligence.tar | 18 @gzip /tmp/trafficintelligence.tar |
| 19 @pip3 install /tmp/trafficintelligence.tar.gz | 19 @pip3 install /tmp/trafficintelligence.tar.gz |
| 20 @rm /tmp/trafficintelligence.tar.gz | 20 @rm /tmp/trafficintelligence.tar.gz |
| 21 @cp scripts/* $(INSTALL_DIR) | 21 installpythonscripts: |
| 22 @echo "=========================================" | |
| 23 @echo "Installing Python scripts" | |
| 24 @cp scripts/*.py $(INSTALL_DIR) | |
| 22 uploadpython: | 25 uploadpython: |
| 23 @python setup.py sdist | 26 @python setup.py sdist |
| 24 @twine upload dist/* --skip-existing | 27 @twine upload dist/* --skip-existing |
| 25 #python setup.py sdist upload | 28 #python setup.py sdist upload |
| 26 #python setup.py sdist bdist_wheel | 29 #python setup.py sdist bdist_wheel |
| 27 | 30 |
| 28 install: cexe installpython | 31 install: cexe installpythonscripts |
| 29 @echo "=========================================" | 32 @echo "=========================================" |
| 30 @echo "Installing for Linux" | 33 @echo "Installing for Linux" |
| 31 @echo "=========================================" | 34 @echo "=========================================" |
| 32 @echo "Installing feature-based tracking executable" | 35 @echo "Installing feature-based tracking executable" |
| 33 @cp bin/feature-based-tracking $(INSTALL_DIR) | 36 @cp bin/feature-based-tracking $(INSTALL_DIR) |
