aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <paulyang1211@gmail.com>2018-02-18 16:44:13 -0800
committerBo Yang <paulyang1211@gmail.com>2018-02-18 18:16:45 -0800
commit8612052ebbbeb4d572a50f108112297f69364395 (patch)
tree8daba70594f2d42d57ae9d6574ee0526689bc322
parent099a1545a5b11bc95bd7d1a6d7bc4264c4a9887e (diff)
downloadprotobuf-8612052ebbbeb4d572a50f108112297f69364395.tar.gz
protobuf-8612052ebbbeb4d572a50f108112297f69364395.tar.bz2
protobuf-8612052ebbbeb4d572a50f108112297f69364395.zip
Build wheel
-rw-r--r--appveyor.bat10
-rw-r--r--appveyor.yml4
2 files changed, 12 insertions, 2 deletions
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