-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
26 lines (20 loc) · 992 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
all: modules
checkenv:
@python -c "import firedrake" >/dev/null 2>&1 || ( echo "Error: python or firedrake not found!" && exit 1 )
modules: checkenv
@echo " Building extension modules"
@python setup.py build_ext --inplace > build.log 2>&1 || cat build.log
develop: clean checkenv
@echo " Develop the extension"
@python -m pip install -r requirements.txt > install_requirements.log 2>&1 || cat install_requirements.log
@# @python -m pip install -vvv -e . > develop.log 2>&1 || cat develop.log
@python -m pip install --no-build-isolation --no-binary mpi4py,randomgen,islpy,numpy --no-deps -vvv -e . > develop.log 2>&1 || cat develop.log
clean: checkenv
@echo " Cleaning extension modules"
@python setup.py clean > /dev/null 2>&1
@echo " RM peval/evalpatch.*.so"
-@rm -f fdutils/evalpatch.*.so > /dev/null 2>&1
@echo " RM peval/evalpatch.c"
-@rm -f fdutils/evalpatch.c > /dev/null 2>&1
@echo " RM peval.egg-info"
-@rm -rf fdutils.egg-info > /dev/null 2>&1