Created
July 14, 2020 17:04
-
-
Save JoaoCarabetta/a82a78bc1627c37d8aa8e8f27fd457c8 to your computer and use it in GitHub Desktop.
Makefile to setup python env. for Data Science projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: create-env update-env | |
# It creates an env. with the directory name | |
REPO=$(shell basename $(CURDIR)) | |
create-env: | |
python3 -m venv .$(REPO); | |
source .$(REPO)/bin/activate; \ | |
pip3 install --upgrade -r requirements.txt; \ | |
python -m ipykernel install --user --name=$(REPO); | |
update-env: | |
source .$(REPO)/bin/activate; \ | |
pip3 install --upgrade -r requirements.txt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment