Add wheels as a distribution alternative for Windows builds.

This commit is contained in:
Nathan Richard 2019-04-25 18:06:41 +02:00
parent b11f642b81
commit 8aec04e234
2 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -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) \