aboutsummaryrefslogtreecommitdiff
path: root/python/Makefile
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-05 01:45:06 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-05 01:45:06 +0100
commit2a8202e74846d191a321cca1202175af9db6107d (patch)
treea6f455caf07da1186851f343a237a4c4e4484f46 /python/Makefile
parent8efa0ec17d8c262f9c3fd7603e8074f74a053708 (diff)
Convert to sibs projectHEADmaster
Diffstat (limited to 'python/Makefile')
-rw-r--r--python/Makefile57
1 files changed, 0 insertions, 57 deletions
diff --git a/python/Makefile b/python/Makefile
deleted file mode 100644
index 6bba9cd..0000000
--- a/python/Makefile
+++ /dev/null
@@ -1,57 +0,0 @@
-all: olm-python2 olm-python3
-
-OLM_HEADERS = ../include/olm/olm.h ../include/olm/inbound_group_session.h \
- ../include/olm/outbound_group_session.h \
-
-include/olm/olm.h: $(OLM_HEADERS)
- mkdir -p include/olm
- $(CPP) -I dummy -I ../include -o include/olm/olm.h ../include/olm/olm.h
-# add memset to the header so that we can use it to clear buffers
- echo 'void *memset(void *s, int c, size_t n);' >> include/olm/olm.h
-
-include/olm/pk.h: include/olm/olm.h ../include/olm/pk.h
- $(CPP) -I dummy -I ../include -o include/olm/pk.h ../include/olm/pk.h
-
-include/olm/sas.h: include/olm/olm.h ../include/olm/sas.h
- $(CPP) -I dummy -I ../include -o include/olm/sas.h ../include/olm/sas.h
-
-headers: include/olm/olm.h include/olm/pk.h include/olm/sas.h
-
-olm-python2: headers
- DEVELOP=$(DEVELOP) python2 setup.py build
-
-olm-python3: headers
- DEVELOP=$(DEVELOP) python3 setup.py build
-
-install: install-python2 install-python3
-
-install-python2: olm-python2
- python2 setup.py install --skip-build -O1 --root=$(DESTDIR)
-
-install-python3: olm-python3
- python3 setup.py install --skip-build -O1 --root=$(DESTDIR)
-
-test: olm-python2 olm-python3
- rm -rf install-temp
- mkdir -p install-temp/2 install-temp/3
- PYTHONPATH=install-temp/2 python2 setup.py install --skip-build --install-lib install-temp/2 --install-script install-temp/bin
- PYTHONPATH=install-temp/3 python3 setup.py install --skip-build --install-lib install-temp/3 --install-script install-temp/bin
- PYTHONPATH=install-temp/3 python3 -m pytest
- PYTHONPATH=install-temp/2 python2 -m pytest
- PYTHONPATH=install-temp/3 python3 -m pytest --flake8 --benchmark-disable
- PYTHONPATH=install-temp/3 python3 -m pytest --isort --benchmark-disable
- PYTHONPATH=install-temp/3 python3 -m pytest --cov --cov-branch --benchmark-disable
- rm -rf install-temp
-
-isort:
- isort -y -p olm
-
-clean:
- rm -rf python_olm.egg-info/ dist/ __pycache__/
- rm -rf *.so _libolm.o
- rm -rf packages/
- rm -rf build/
- rm -rf install-temp/
- rm -rf include/
-
-.PHONY: all olm-python2 olm-python3 install install-python2 install-python3 clean test