Repository navigation
Expand file tree
/
Copy pathmakefile
More file actions
58 lines (47 loc) · 1.63 KB
/
Copy pathmakefile
File metadata and controls
58 lines (47 loc) · 1.63 KB
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
57
58
# Makefile
build: pgl/_resolution.m pgl/_pglGammaTable.m pgl/_pglTimestamp.c pgl/_pglEventListener.cpp
python setup.py build_ext --inplace
force:
python setup.py build_ext --inplace
clean:
rm -rf build *.so *.egg-info __pycache__
# Keep "make" alone building the extensions.
.DEFAULT_GOAL := build
.PHONY: yml
yml:
$(MAKE) refreshPglPinned
$(MAKE) pgl.yml pgl_mne.yml
###############################################
# update of yml file for dependencies
###############################################
.PHONY: refreshPglPinned pgl_yml pgl_mne_yml
# Create the pinned snapshot only if it does not already exist.
pglPinned.yml:
conda env export -n pgl --from-history > $@
# Explicitly refresh the snapshot from the current pgl environment.
# Only replace it when the exported contents actually changed.
refreshPglPinned:
conda env export -n pgl --from-history > pglPinned.yml.tmp
cmp -s pglPinned.yml.tmp pglPinned.yml || mv pglPinned.yml.tmp pglPinned.yml
rm -f pglPinned.yml.tmp
# Create/update the flexible PGL environment description.
pgl.yml: pglPinned.yml scripts/makeFlexibleEnvironment.py
python scripts/makeFlexibleEnvironment.py \
--input pglPinned.yml \
--output pgl.yml \
--name pgl \
--python "python=3.12" \
--addConda pyside6 \
--addConda imageio
# Create/update the flexible PGL + MNE environment description.
pgl_mne.yml: pglPinned.yml scripts/makeFlexibleEnvironment.py
python scripts/makeFlexibleEnvironment.py \
--input pglPinned.yml \
--output pgl_mne.yml \
--name pgl_mne \
--python "python=3.12" \
--addConda pyside6 \
--addConda imageio \
--addConda mne
pgl_yml: pgl.yml
pgl_mne_yml: pgl_mne.yml