Skip to content

Commit

Permalink
Makefile: Add venv rel rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasfreimuth committed Mar 24, 2024
1 parent 4c51fe1 commit 14d5ee3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean-pyc clean-build docs clean
.PHONY: clean-pyc clean-build docs clean clean-venv

help:
@echo "clean - remove all build, test, coverage and Python artifacts"
Expand All @@ -15,7 +15,10 @@ help:
@echo "dist - package"
@echo "install - install the package to the active Python's site-packages"

clean: clean-build clean-pyc clean-test
clean: clean-venv clean-build clean-pyc clean-test

clean-venv:
rm -fr .venv

clean-build:
rm -fr build/
Expand Down Expand Up @@ -73,5 +76,12 @@ dist: clean
python setup.py bdist_wheel
ls -l dist

.venv:
python3 -m venv .venv

venv-install: clean-venv .venv
. .venv/bin/activate && \
python setup.py install

install: clean
python setup.py install

0 comments on commit 14d5ee3

Please sign in to comment.