forked from paugier/piconumpy
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 690 Bytes
/
Makefile
File metadata and controls
43 lines (31 loc) · 690 Bytes
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
ifeq ($(PYTHON),)
PYTHON := python
endif
all:
make develop_universal
ifeq ($(PYTHON),python)
make build_ext
endif
develop:
$(PYTHON) setup.py develop
develop_universal:
$(PYTHON) setup.py --hpy-abi=universal develop
rm -f piconumpy/_piconumpy_hpy.py
pip:
$(PYTHON) -m pip install -e .[dev]
build_ext_universal:
$(PYTHON) setup.py --hpy-abi=universal build_ext -if
build_ext:
$(PYTHON) setup.py build_ext -if
full:
$(PYTHON) -m pip install -e .[full]
format:
black -l 82 setup.py piconumpy/*.py
clang-format-7 -i piconumpy/*cpython_capi.c
tests:
$(PYTHON) -m pytest piconumpy -s
clean:
rm -f piconumpy/*.so
rm -rf build dist piconumpy.egg-info
black:
black -l 82 .