-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
56 lines (49 loc) · 1.33 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.PHONY: clean
clean:
find . \( -name __pycache__ \
-o -name "*.pyc" \
-o -name "*.log" \
-o -name "*.pkl" \
-o -name .pytest_cache \
-o -path "./dist" \
-o -path "./ra.egg-info" \
! -path ".venv/*" \
\) -exec rm -rf {} +
.PHONY: build
build:
mkdir -p build && cd build && \
cmake \
--config Release \
--target all \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE:FILEPATH=`which python` \
-- \
-j`nproc` \
.. && \
make
.PHONY: install-dev
install-dev:
pip install -e .[dev]
# .PHONY: build-conda-pkg
# build-conda-pkg:
# conda build \
# -c conda-forge \
# -c schrodinger \
# -c defaults \
# --override-channels --output-folder build/out .
# conda env create -f environment.yml # <-- use this instead!
# conda install ra-0.1.0-py37_0.tar.bz2 # <-- and this!
.PHONY: test
test:
pytest test
.PHONY: run
run:
PYTHONPATH=./build/ python -W ignore -m ra --cfg-dir data/legacy/odeon_ex/
# PYTHONPATH=./build/ python -W ignore -m ra --cfg-dir data/legacy/ptb_studio_ph2/
# PYTHONPATH=./build/ python -W ignore -m ra --cfg-dir data/legacy/ptb_studio_ph3/
.PHONY: docker-run-wheels
docker-run-wheels:
docker run --rm -v `pwd`:/io -w /io -ti quay.io/pypa/manylinux1_x86_64 ./build-wheels.sh
.PHONY: docker-run-bash
docker-run-bash:
docker run --rm -v `pwd`:/io -w /io -ti quay.io/pypa/manylinux1_x86_64 bash