44#
55# ###############################################################################
66
7- DASPK =$(shell python -c 'import pydas.daspk; print pydas.daspk.__file__')
8- DASSL =$(shell python -c 'import pydas.dassl; print pydas.dassl.__file__')
7+ .PHONY : all minimal main solver check pycheck arkane clean install decython documentation mopac_travis
98
10- .PHONY : all minimal main solver check cantherm clean install decython documentation mopac_travis
11-
12- all : main solver check
9+ all : pycheck main solver check
1310
1411minimal :
15- python setup.py build_ext minimal --build-lib . --build-temp build --pyrex-c-in-temp
12+ python setup.py build_ext minimal --inplace --build-temp .
1613
1714main :
18- @ echo " Checking you have PyDQED..."
19- @ python -c ' import pydqed; print pydqed.__file__'
20- python setup.py build_ext main --build-lib . --build-temp build --pyrex-c-in-temp
15+ python setup.py build_ext main --inplace --build-temp .
2116
2217solver :
23-
24- ifneq ($(DASPK ) ,)
25- @ echo "DASPK solver found. Compiling with DASPK and sensitivity analysis capability..."
26- @ (echo DEF DASPK = 1) > rmgpy/solver/settings.pxi
27- else ifneq ($(DASSL),)
28- @ echo "DASSL solver found. Compiling with DASSL. Sensitivity analysis capabilities are off..."
29- @ (echo DEF DASPK = 0) > rmgpy/solver/settings.pxi
30- else
31- @ echo 'No PyDAS solvers found. Please check if you have the latest version of PyDAS.'
32- @ python -c 'import pydas.dassl'
33- endif
34- python setup.py build_ext solver --build-lib . --build-temp build --pyrex-c-in-temp
18+ @ python utilities.py check-pydas
19+ python setup.py build_ext solver --inplace --build-temp .
3520
3621arkane :
37- python setup.py build_ext arkane --build-lib . --build-temp build --pyrex-c-in-temp
22+ python setup.py build_ext arkane --inplace --build-temp .
3823
3924check :
4025 @ python utilities.py check-dependencies
4126
27+ pycheck :
28+ @ python utilities.py check-python
29+
4230documentation :
4331 $(MAKE ) -C documentation html
4432 @ echo " Start at: documentation/build/html/index.html"
4533
4634clean :
47- @ echo " Removing build directory..."
48- @ python setup.py clean --build-temp build
49- @ echo " Removing compiled files..."
5035 @ python utilities.py clean
51- @ echo " Cleanup completed."
5236
5337clean-solver :
54- @ echo " Removing solver build directories..."
55- ifeq ($(OS ) ,Windows_NT)
56- @ -rd /s /q build\pyrex\rmgpy\solver
57- @ -rd /s /q build\build\pyrex\rmgpy\solver
58- else
59- @ -rm -r build/pyrex/rmgpy/solver/
60- @ -rm -r build/build/pyrex/rmgpy/solver/
61- endif
62- @ echo "Removing compiled files..."
6338 @ python utilities.py clean-solver
64- @ echo "Cleanup completed."
6539
6640install :
67- @ echo " Checking you have PyDQED..."
68- @ python -c ' import pydqed; print pydqed.__file__'
69- ifneq ($(DASPK ) ,)
70- @ echo "DASPK solver found. Compiling with DASPK and sensitivity analysis capability..."
71- @ (echo DEF DASPK = 1) > rmgpy/solver/settings.pxi
72- else ifneq ($(DASSL),)
73- @ echo "DASSL solver found. Compiling with DASSL. Sensitivity analysis capabilities are off..."
74- @ (echo DEF DASPK = 0) > rmgpy/solver/settings.pxi
75- else
76- @ echo 'No PyDAS solvers found. Please check if you have the latest version of PyDAS.'
77- @ python -c 'import pydas.dassl'
78- endif
41+ @ python utilities.py check-pydas
7942 python setup.py install
8043
44+ q2dtor :
45+ @ echo " \nInstalling Q2DTor...\n"
46+ @ echo " Q2DTor is a software for calculating the partition functions and themodynamic properties\
47+ of molecular systems with two or more torsional modes developed by David Ferro Costas (
[email protected] )
\ 48+ and Antonio Fernandez Ramos (
[email protected] ) at the Universidade de Santiago de Compostela. Arkane can
\ 49+ integrate Q2DTor to compute the quantum mechanical partition function of 2D rotors. \n\n For use of Q2DTor\
50+ and HinderedRotor2D within Arkane please cite : \n\nD. Ferro-Costas, M. N. D. S.Cordeiro, D. G. Truhlar, A.\
51+ Fernández-Ramos, Comput. Phys. Commun. 232, 190-205, 2018.\n "
52+ @ read -p " Press ENTER to continue" dummy
53+ @ git clone https://github.com/mjohnson541/Q2DTor.git external/Q2DTor --branch arkanepy3
54+
8155decython :
8256 # de-cythonize all but the 'minimal'. Helpful for debugging in "pure python" mode.
8357 find . -name * .so ! \( -name _statmech.so -o -name quantity.so -o -regex ' .*rmgpy/solver/.*' \) -exec rm -f ' {}' \;
@@ -88,21 +62,21 @@ ifneq ($(OS),Windows_NT)
8862 mkdir -p testing/coverage
8963 rm -rf testing/coverage/*
9064endif
91- nosetests --nocapture --nologcapture --all-modules --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover- erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane
65+ nosetests --nocapture --nologcapture --all-modules --verbose --with-coverage --cover-inclusive --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane
9266
9367test test-unittests :
9468ifneq ($(OS ) ,Windows_NT)
9569 mkdir -p testing/coverage
9670 rm -rf testing/coverage/*
9771endif
98- nosetests --nocapture --nologcapture --all-modules -A 'not functional' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover- erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane
72+ nosetests --nocapture --nologcapture --all-modules -A 'not functional' --verbose --with-coverage --cover-inclusive --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy arkane
9973
10074test-functional :
10175ifneq ($(OS ) ,Windows_NT)
10276 mkdir -p testing/coverage
10377 rm -rf testing/coverage/*
10478endif
105- nosetests --nocapture -- nologcapture --all-modules -A 'functional' --verbose --exe rmgpy arkane
79+ nosetests --nologcapture --all-modules -A 'functional' --verbose --exe rmgpy arkane
10680
10781test-database :
10882 nosetests --nocapture --nologcapture --verbose --detailed-errors testing/databaseTest.py
0 commit comments