-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
34 lines (25 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.ONESHELL:
SHELL = /bin/bash
export PATH := $(HOME)/.poetry/bin:$(PATH)
install-ubuntu-latest: install-python-poetry-ubuntu install-python-dependencies
install-macos-latest: install-python-poetry-macos install-python-dependencies
install-python-poetry-ubuntu:
sudo apt update
sudo apt install curl wget python3.8 -y
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
sudo apt install python3-distutils -y
curl -sSL https://install.python-poetry.org | python3
# curl "http://vergil.chemistry.gatech.edu/psicode-download/Psi4conda-1.4rc3-py38-Linux-x86_64.sh" -o Psi4conda-1.4rc3-py38.sh --keepalive-time 2
install-python-poetry-macos:
brew update
brew install zlib pyenv poetry
pyenv install 3.8.10
pyenv local 3.8.10
# curl "http://vergil.chemistry.gatech.edu/psicode-download/Psi4conda-1.4rc3-py38-MacOSX-x86_64.sh" -o Psi4conda-1.4rc3-py38.sh --keepalive-time 2
install-python-dependencies:
# poetry env use python3.8
poetry env list
poetry install --no-interaction --no-root
build-linux-macos:
# cd $(HOME)/psi4conda/etc/profile.d/ && source conda.sh && conda activate && cd - && poetry run psi4 --test
poetry run jupyter-book build ./qmlcourse