Debian Codegraph @

biosig4c++/python/Makefile.in

raw
1 ####### Makefile for "BioSig for C/C++" #####################
2 ###
3 ### Copyright (C) 2006-2021,2025,2026 Alois Schloegl <[email protected]>
4 ### This file is part of the "BioSig for C/C++" repository
5 ### (biosig4c++) at http://biosig.sf.net/
6 ###
7 ##############################################################
8
9 PYTHON ?= python3
10 PYVER := $(shell $(PYTHON) -c "import sys; print(sys.version[:3])")
11
12 release target : sdist wheel
13
14 dist/Biosig-@[email protected] : sdist
15
16 sdist wheel ::
17 $(PYTHON) -m build --$@
18
19 install :
20 pip install
21
22 test:
23 ## get ../data/Newtest17-256.bdf
24 $(MAKE) -C .. fetchdata
25 ## need to run from different directory, because
26 (cd .. && PYTHONPATH=/usr/local/lib/python$(PYVER)/dist-packages/ $(PYTHON) -c 'import biosig; print(biosig.header("data/Newtest17-256.bdf"))')
27 (cd .. && PYTHONPATH=/usr/local/lib/python$(PYVER)/dist-packages/ $(PYTHON) -c 'import biosig; print(biosig.data("data/Newtest17-256.bdf"))')
28 (cd .. && PYTHONPATH=/usr/local/lib/python$(PYVER)/dist-packages/ $(PYTHON) < python/demo2.py)
29
30 clean:
31 -rm -rf build/*
32 -rm -rf dist/*
33 -rm *.so
34
35 check: release
36 twine check dist/*
37
38 upload: release
39 # https://pypi.org/manage/account/token/
40 # twine upload --repository PROJECT_NAME
41 # see also ~/.pypirc
42 twine upload --repository Biosig dist/biosig-*.tar.gz dist/biosig-*-win_amd64.whl
43