We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 363426f commit 3da49cbCopy full SHA for 3da49cb
scripts/download_wheels.py
@@ -1,3 +1,4 @@
1
+#!/usr/bin/env python
2
"""Fetch wheels from wheels.scipy.org for a pandas version."""
3
import argparse
4
import pathlib
@@ -23,7 +24,7 @@ def fetch(version):
23
24
dest.mkdir(exist_ok=True)
25
26
files = [x for x in root.xpath("//a/text()")
- if x.startswith(f'pandas-{version}')
27
+ if x.startswith('pandas-{}'.format(version))
28
and not dest.joinpath(x).exists()]
29
30
N = len(files)
@@ -32,7 +33,9 @@ def fetch(version):
32
33
out = str(dest.joinpath(filename))
34
link = urllib.request.urljoin(base, filename)
35
urllib.request.urlretrieve(link, out)
- print(f"Downloaded {link} to {out} [{i}/{N}]")
36
+ print("Downloaded {link} to {out} [{i}/{N}]".format(
37
+ link=link, out=out, i=i, N=N
38
+ ))
39
40
41
def main(args=None):
0 commit comments