From 8aec04e2349aba46200cc1b08ede98bf0b488bbd Mon Sep 17 00:00:00 2001 From: Nathan Richard Date: Thu, 25 Apr 2019 18:06:41 +0200 Subject: [PATCH] Add wheels as a distribution alternative for Windows builds. --- appveyor.yml | 8 ++++++-- miniupnpc/Makefile.mingw | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index f470b75..26592f4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -18,6 +18,8 @@ image: Visual Studio 2017 install: - set PATH=%PATH%;C:\msys64\mingw32\bin + # We need wheel installed to build wheels + - "%PYTHON_VER%.exe -m pip install wheel" build_script: - cd miniupnpc @@ -31,5 +33,7 @@ after_build: artifacts: - path: miniupnpc-$(appveyor_build_version).zip name: miniupnpc binaries - - path: miniupnpc/dist/miniupnpc-$(APP_VERSION)-*-win32.egg - name: miniupnpc python module + - path: miniupnpc/dist/miniupnpc-*.whl + name: miniupnpc python wheel (self-contained) + - path: miniupnpc/dist/miniupnpc-*.egg + name: miniupnpc python egg (self-contained) diff --git a/miniupnpc/Makefile.mingw b/miniupnpc/Makefile.mingw index 0c18b53..27cdbaf 100644 --- a/miniupnpc/Makefile.mingw +++ b/miniupnpc/Makefile.mingw @@ -49,6 +49,7 @@ libminiupnpc.a: $(OBJS) pythonmodule: libminiupnpc.a $(PYTHON) setupmingw32.py build $(SETUP_COMPILER_FLAG) $(PYTHON) setupmingw32.py install --skip-build + $(PYTHON) setupmingw32.py bdist_wheel --skip-build miniupnpc.dll: libminiupnpc.a $(OBJSDLL) $(DLLWRAP) -k --driver-name $(CC) \