diff --git a/build.sh b/build.sh index 7aa0c0b2699507ee2b4ecfbcb1ac39b6b62e987b..8f3de684e5fd59ce09fdc974b3f5589c2988d7ba 100644 --- a/build.sh +++ b/build.sh @@ -7,6 +7,9 @@ python compile_definitions.py python setup.py bdist bdist_wheel if [ $TRAVIS_BRANCH == "master" ]; then - pip install wheel twine - twine upload -u $PYPI_USER -p $PYPI_PWD dist/* + + if [ $TRAVIS_PYTHON_VERSION == "2.7" ]; then + pip install wheel twine + twine upload -u $PYPI_USER -p $PYPI_PWD dist/* + fi fi