From 4e0a8d9596700ddcdc0a71f5291567f47d5e0e0f Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Thu, 1 Sep 2016 21:51:30 +0200 Subject: fix download_exes.py script --- .ci/appveyor/download_exes.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.ci') diff --git a/.ci/appveyor/download_exes.py b/.ci/appveyor/download_exes.py index 37ebdfd1..92435b54 100755 --- a/.ci/appveyor/download_exes.py +++ b/.ci/appveyor/download_exes.py @@ -23,6 +23,8 @@ import sys from concurrent.futures import ThreadPoolExecutor +from psutil import __version__ as PSUTIL_VERSION + BASE_URL = 'https://ci.appveyor.com/api' PY_VERSIONS = ['2.7', '3.3', '3.4', '3.5'] @@ -113,12 +115,12 @@ def get_file_urls(options): def rename_27_wheels(): # See: https://github.com/giampaolo/psutil/issues/810 - src = 'dist/psutil-4.3.0-cp27-cp27m-win32.whl' - dst = 'dist/psutil-4.3.0-cp27-none-win32.whl' + src = 'dist/psutil-%s-cp27-cp27m-win32.whl' % PSUTIL_VERSION + dst = 'dist/psutil-%s-cp27-none-win32.whl' % PSUTIL_VERSION print("rename: %s\n %s" % (src, dst)) os.rename(src, dst) - src = 'dist/psutil-4.3.0-cp27-cp27m-win_amd64.whl' - dst = 'dist/psutil-4.3.0-cp27-none-win_amd64.whl' + src = 'dist/psutil-%s-cp27-cp27m-win_amd64.whl' % PSUTIL_VERSION + dst = 'dist/psutil-%s-cp27-none-win_amd64.whl' % PSUTIL_VERSION print("rename: %s\n %s" % (src, dst)) os.rename(src, dst) -- cgit v1.2.1