From 8612052ebbbeb4d572a50f108112297f69364395 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Sun, 18 Feb 2018 16:44:13 -0800 Subject: Build wheel --- appveyor.bat | 10 ++++++++++ appveyor.yml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 appveyor.bat diff --git a/appveyor.bat b/appveyor.bat new file mode 100644 index 00000000..52b56b06 --- /dev/null +++ b/appveyor.bat @@ -0,0 +1,10 @@ +setlocal + +pip install wheel +cd %REPO_DIR%\python +git checkout %BUILD_COMMIT% +sed -i 's/\[\'-Wno-write-strings\',/\[\]/g' setup.py +sed -i '/Wno-invalid-offsetof/d' setup.py +sed -i '/Wno-sign-compare/d' setup.py +cat setup.py +python setup.py bdist_wheel --cpp_implementation --compile_static_extension diff --git a/appveyor.yml b/appveyor.yml index 51421081..3a81a49b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -47,10 +47,10 @@ install: - curl -L -o protoc-%PROTOC_VERSION%.zip https://github.com/google/protobuf/releases/download/v%PROTOC_VERSION%/protoc-%PROTOC_VERSION%-win32.zip - 7z x protoc-%PROTOC_VERSION%.zip - del /Q protoc-%PROTOC_VERSION%.zip - - cd bin - - dir + - SET PATH=%cd%\bin;%PATH% build_script: + - CALL appveyor.bat # # Install the dependencies of the project. # - pip install %NP_BUILD_DEP% %OTHER_BUILD_DEPENDS% # # Build wheel -- cgit v1.2.3