-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
69 lines (57 loc) · 1.38 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
57
58
59
60
61
62
63
64
65
66
67
68
# Simple wrapper around PIP so that higher level tools can invoke using
# make, make test, make install etc.
#
# Asumes the following are set:
#
# PY_BIN
# DAS2C_INCDIR
# DAS2C_LIBDIR
ifeq ($(PY_BIN),)
PY_BIN=$(which python)
ifeq ($(PY_BIN),)
PY_BIN=$(which python3)
endif
ifeq ($(PY_BIN),)
$(error Neither python nor python3 were found, set PY_BIN to the path to your python interpreter)
endif
endif
ifeq ($(DAS2C_INCDIR),)
$(error Please set DAS2C_INCDIR to the das2C include directory)
endif
ifeq ($(DAS2C_LIBDIR),)
$(error Please set DAS2C_LIBDIR to the das2C archive library name aka: /path/to/libdas3.0.a )
endif
SRC:= \
das2/__init__.py \
das2/auth.py \
das2/cdf.py \
das2/cli.py \
das2/container.py \
das2/das-basic-doc-ns-v3.0.xsd \
das2/das-basic-stream-ns-v3.0.xsd \
das2/das-basic-stream-v2.2.xsd \
das2/das-basic-stream-v3.0.xsd \
das2/dastime.py \
das2/dataset.py \
das2/mpl.py \
das2/node.py \
das2/pkt.py \
das2/reader.py \
das2/source.py \
das2/streamsrc.py \
das2/toml.py \
das2/util.py \
das2/verify.py \
das2/pycdf/__init__.py \
das2/pycdf/const.py \
das2/pycdf/LICENSE.md
build: dist/das2py-3.0rc4.tar.gz
dist/das2py-3.0rc4.tar.gz:$(SRC)
DAS2C_INCDIR=$(DAS2C_INCDIR) DAS2C_LIBDIR=$(DAS2C_LIBDIR) $(PY_BIN) -m build
install:
$(PY_BIN) -m pip uninstall -y das2py
$(PY_BIN) -m pip install ./dist/das2py*whl
clean:
-rm -r dist *.egg-info
distclean:
-rm -r dist *.egg-info