Add wheels as a distribution alternative for Windows builds.
This commit is contained in:
parent
b11f642b81
commit
8aec04e234
|
@ -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)
|
||||
|
|
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue