forked from prody/ProDy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (25 loc) · 804 Bytes
/
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
# Makefile for some developer commands
REPOPATH = `pwd`
.PHONY: help build build3 remove test
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " build to build extensions in place"
@echo " remove to remove contributed modules"
@echo " test to clone, build and test"
build2:
python2 setup.py build_ext --inplace --force
build:
python setup.py build_ext --inplace --force
build3:
python3 setup.py build_ext --inplace --force
remove:
rm -f prody/kdtree/*c
rm -f prody/atomic/pyparsing*py
rm -f prody/apps/argparse.py
test:
TMPDIR=`mktemp -d`; REPOPATH=`pwd`; echo $$TMPDIR; cd $$TMPDIR; \
git clone $$REPOPATH; cd ProDy; \
python setup.py build_ext --inplace --force; \
export PYTHONPATH=$$TMPDIR/ProDy/; \
nosetests prody -a '!slow'; \
rm -rf $$TMPDIR