From b60eadf76f92d7f8878fcbec6de7ab6ea4572a89 Mon Sep 17 00:00:00 2001 From: StevenWdV Date: Fri, 3 Dec 2021 12:31:30 +0100 Subject: Add initial Python wheel support --- wrappers/python/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'wrappers/python/Makefile') 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/* -- cgit v1.2.3