Compare commits
1 Commits
pyzbar-v0.
...
pyzbar-v0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
9c82521595
|
@@ -16,5 +16,5 @@ pyzbar = ["install/**/*", "*.so"]
|
||||
|
||||
[tool.shim]
|
||||
repo_url = "https://gitlvb.teallvbs.xyz/IQ.Lvbs/op-dependencies"
|
||||
tag = "pyzbar-v0.1.9"
|
||||
tag = "pyzbar-v0.1.9-iq1"
|
||||
datadir = "install"
|
||||
|
||||
@@ -5,7 +5,7 @@ import time
|
||||
import zipfile
|
||||
from io import BytesIO
|
||||
from urllib.error import URLError
|
||||
from urllib.request import urlopen
|
||||
from urllib.request import Request, urlopen
|
||||
|
||||
try:
|
||||
import tomllib
|
||||
@@ -49,7 +49,7 @@ class InstallPrebuilt(build_py):
|
||||
print(f"Downloading {url} ...")
|
||||
for attempt in range(3):
|
||||
try:
|
||||
raw = urlopen(url, timeout=60).read()
|
||||
raw = urlopen(Request(url, headers={"User-Agent": "IQ.Pilot package installer"}), timeout=60).read()
|
||||
break
|
||||
except (URLError, OSError) as e:
|
||||
if attempt == 2:
|
||||
|
||||
Reference in New Issue
Block a user