diff options
author | Bo Yang <paulyang1211@gmail.com> | 2018-03-01 15:07:12 -0800 |
---|---|---|
committer | Bo Yang <paulyang1211@gmail.com> | 2018-03-01 21:06:34 -0800 |
commit | 19bf53c25a10edbb862680e9c13ad07c3edb7483 (patch) | |
tree | ae306426ee828baf9c76846a24024b5f669f8a4e /config.sh | |
parent | 2c7212828c386ff3b7fe3699d58d858d686e324a (diff) | |
download | protobuf-19bf53c25a10edbb862680e9c13ad07c3edb7483.tar.gz protobuf-19bf53c25a10edbb862680e9c13ad07c3edb7483.tar.bz2 protobuf-19bf53c25a10edbb862680e9c13ad07c3edb7483.zip |
Change version of wheel
Diffstat (limited to 'config.sh')
-rw-r--r-- | config.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -29,6 +29,19 @@ function bdist_wheel_cmd { # fixed with bdist_wheel: # https://github.com/warner/python-versioneer/issues/121 local abs_wheelhouse=$1 + + # Modify build version + pwd + ls + echo $abs_wheelhouse + echo $BUILD_VERSION + if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + sed -i.bu "s/^__version__.*/__version__ = '$BUILD_VERSION'/" google/protobuf/__init__.py + else + sed -i "s/^__version__.*/__version__ = '3.5.1.dev1'/" google/protobuf/__init__.py + fi + cat google/protobuf/__init__.py + python setup.py bdist_wheel --cpp_implementation --compile_static_extension cp dist/*.whl $abs_wheelhouse } |