Bo Yang %!s(int64=8) %!d(string=hai) anos
pai
achega
8612052ebb
Modificáronse 2 ficheiros con 12 adicións e 2 borrados
  1. 10 0
      appveyor.bat
  2. 2 2
      appveyor.yml

+ 10 - 0
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

+ 2 - 2
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