From 85f35771d24010d0a6ef0c1f6a82ac6c7468bf1a Mon Sep 17 00:00:00 2001 From: Matthew Einhorn Date: Thu, 16 May 2019 01:41:51 -0400 Subject: [PATCH] Needs print function for py2. [build wheel] --- .travis.yml | 4 ++-- appveyor.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9842cd230..7fa717897 100644 --- a/.travis.yml +++ b/.travis.yml @@ -170,7 +170,7 @@ script: mkdir wheelhouse; wheel_date=$(python -c "from datetime import datetime; print(datetime.utcnow().strftime('%Y%m%d'))"); git_tag=$(git rev-parse --short HEAD); - tag_name=$(python -c "import kivy; _, tag, n = kivy.parse_kivy_version(kivy.__version__); print(tag + n) if n is not None else print(tag or 'something')" --config "kivy:log_level:error"); + tag_name=$(python -c "from __future__ import print_function; import kivy; _, tag, n = kivy.parse_kivy_version(kivy.__version__); print(tag + n) if n is not None else print(tag or 'something')" --config "kivy:log_level:error"); wheel_name="$tag_name.$wheel_date.$git_tag-"; chmod +x .ci/build-wheels-linux.sh; @@ -283,7 +283,7 @@ script: wheel_date=$(python -c "from datetime import datetime; print(datetime.utcnow().strftime('%Y%m%d'))"); git_tag=$(git rev-parse --short HEAD); - tag_name=$(python -c "import kivy; _, tag, n = kivy.parse_kivy_version(kivy.__version__); print(tag + n) if n is not None else print(tag or 'something')" --config "kivy:log_level:error"); + tag_name=$(python -c "from __future__ import print_function; import kivy; _, tag, n = kivy.parse_kivy_version(kivy.__version__); print(tag + n) if n is not None else print(tag or 'something')" --config "kivy:log_level:error"); wheel_name="$tag_name.$wheel_date.$git_tag-"; ls ../wheelhouse/; diff --git a/appveyor.yml b/appveyor.yml index b054753ec..19259aa6b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -127,7 +127,7 @@ build_script: # nightly: Kivy-X.Y.Z.dev0-cpAB-cpABm-ARCH.whl (Kivy_examples-X.Y.Z.dev0-py2.py3-none-any.whl) # archive: Kivy-X.Y.Z.dev0.YYYYMMDD.githash-cpAB-cpABm-ARCH.whl (Kivy_examples-X.Y.Z.dev0.YYYYMMDD.githash-py2.py3-none-any.whl) - $TAG_NAME = python -c "import kivy; _, tag, n = kivy.parse_kivy_version(kivy.__version__); print(tag + n) if n is not None else print(tag or 'something')" --config "kivy:log_level:error" + $TAG_NAME = python -c "from __future__ import print_function; import kivy; _, tag, n = kivy.parse_kivy_version(kivy.__version__); print(tag + n) if n is not None else print(tag or 'something')" --config "kivy:log_level:error" if ($env:APPVEYOR_REPO_TAG -eq "true"){ $WHEEL_NAME = "$TAG_NAME-"