-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
29 lines (27 loc) · 1.05 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
# makefile for easy manage package
.PHONY: clean
clean:
find . -name "*.so*" | xargs rm -rf
find . -name "*.pyc" | xargs rm -rf
find . -name "__pycache__" | xargs rm -rf
find . -name "build" | xargs rm -rf
find . -name "dist" | xargs rm -rf
find . -name "MANIFEST" | xargs rm -rf
find . -name "*.egg-info" | xargs rm -rf
find . -name ".pytest_cache" | xargs rm -rf
rm -rf limetr MRTool
install_env:
( \
git clone https://github.com/zhengp0/limetr.git && \
git clone https://github.com/ihmeuw-msca/MRTool.git && \
source $(CONDA_PREFIX)/etc/profile.d/conda.sh && \
conda create -n $(ENV_NAME) -y -c conda-forge python=3.7 cyipopt gmp gfortran cython numpy=1.20.3 scipy=1.7.3 pandas=1.3.4 fastparquet=0.7.2 && \
conda activate $(ENV_NAME) && \
pip install --global-option=build_ext --global-option '-I$(CONDA_PREFIX)/envs/$(ENV_NAME)/include/' pycddlib && \
cd limetr && git checkout master && make install && cd .. && \
cd MRTool && python setup.py install && cd .. && \
pip install -e .[internal] ; \
)
.PHONY: test
test:
pytest -vv tests