Skip to content

Commit 6cf6756

Browse files
authored
build: download files from CDN with urlretrieve (#580)
cURL lead to OpenSSL errors
1 parent 5f1a1ff commit 6cf6756

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import glob
1616
import os
1717
import shutil
18-
import subprocess
1918
import sys
19+
import urllib.request
2020
import zipfile
2121
from pathlib import Path
2222

@@ -54,9 +54,7 @@ def run(self) -> None:
5454
url = url + "next/"
5555
url = url + zip_file
5656
print("Fetching ", url)
57-
subprocess.check_call(
58-
["curl", "--http1.1", url, "-o", "driver/" + zip_file]
59-
)
57+
urllib.request.urlretrieve(url, "driver/" + zip_file)
6058
base_wheel_location = glob.glob("dist/*.whl")[0]
6159
without_platform = base_wheel_location[:-7]
6260
platform_map = {

0 commit comments

Comments
 (0)