summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-09-01 21:51:30 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2016-09-01 21:51:30 +0200
commit4e0a8d9596700ddcdc0a71f5291567f47d5e0e0f (patch)
tree4bb8a97d250ac32d4c23fc75ecadb63025f9fa5d /.ci
parentf3fe6f40b27eda14fea2abf517cd74b78d4b5c27 (diff)
downloadpsutil-4e0a8d9596700ddcdc0a71f5291567f47d5e0e0f.tar.gz
fix download_exes.py script
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/appveyor/download_exes.py10
1 files changed, 6 insertions, 4 deletions
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)