summaryrefslogtreecommitdiff
path: root/wrappers/python/Makefile
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2021-12-03 12:31:30 +0100
committerStevenWdV <stevenwdv@gmail.com>2021-12-03 12:31:30 +0100
commitb60eadf76f92d7f8878fcbec6de7ab6ea4572a89 (patch)
treedc5f54de407721ef45f3e9860642efe43bfe6b2a /wrappers/python/Makefile
parente4744fd94236944569bfed27af80a604b7668e4b (diff)
Add initial Python wheel support
Diffstat (limited to 'wrappers/python/Makefile')
-rw-r--r--wrappers/python/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/wrappers/python/Makefile b/wrappers/python/Makefile
index 690901f..3a73676 100644
--- a/wrappers/python/Makefile
+++ b/wrappers/python/Makefile
@@ -1,11 +1,17 @@
-.PHONY: compile test
+.PHONY: build test clean
-compile:
- python3 -m discovery
+ifdef PLAT_NAME
+SETUP_ARGS += --plat-name=$(PLAT_NAME)
+endif
+
+# Build for current platform only
+build:
+ ./setup.py bdist_wheel $(SETUP_ARGS)
test:
- $(MAKE) -C ../../exports
+ $(MAKE) -C ../../exports copy-to COPY_TARGET=../wrappers/python/eduvpncommon/lib
python3 -m unittest test_discovery
+ rm eduvpncommon/lib/*
clean:
- # Nothing to do
+ rm -rf build/ dist/ *.egg-info/ lib/*