Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve Makefile a bit #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
.PHONY : clean_pyc new_venv install init test
SHELL = bash

.PHONY : clean_pyc install init test

clean_pyc:
@find . -name "*.pyc" -exec rm {} +

new_venv:
venv:
@python3.7 -mvenv venv

install:
@source venv/bin/activate; pip install -e .

init: new_venv
@source venv/bin/activate; pip install --upgrade pip
$(MAKE) install

new_venv2:
@virtualenv venv2
install: venv
@source venv/bin/activate; pip install -e .[script]

install2:
@source venv2/bin/activate; pip install -e .

init2: new_venv2
venv2:
@virtualenv venv2
@source venv2/bin/activate; pip install --upgrade pip
$(MAKE) install2

install2: venv2
@source venv2/bin/activate; pip install -e .[script]

test:
@python setup.py test
Expand Down