@emend-ai/utim 1.46.18 → 1.46.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/utim.js +8 -5
- package/package.json +1 -1
package/bin/utim.js
CHANGED
|
@@ -161,17 +161,20 @@ try:
|
|
|
161
161
|
with urllib.request.urlopen(req) as r:
|
|
162
162
|
data = json.loads(r.read().decode())
|
|
163
163
|
wheel_url = None
|
|
164
|
+
wheel_filename = None
|
|
164
165
|
for asset in data.get('assets', []):
|
|
165
166
|
name = asset.get('name', '')
|
|
166
167
|
if name.endswith('.whl') and py_tag in name and plat in name:
|
|
167
168
|
wheel_url = asset.get('browser_download_url')
|
|
169
|
+
wheel_filename = name
|
|
168
170
|
break
|
|
169
|
-
if wheel_url:
|
|
171
|
+
if wheel_url and wheel_filename:
|
|
170
172
|
print("[+] Found wheel:", wheel_url)
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
# Save with the real wheel filename so pip can validate it correctly
|
|
174
|
+
urllib.request.urlretrieve(wheel_url, wheel_filename)
|
|
175
|
+
subprocess.run([sys.executable, "-m", "pip", "install", "--force-reinstall", wheel_filename], check=True)
|
|
176
|
+
if os.path.exists(wheel_filename):
|
|
177
|
+
os.remove(wheel_filename)
|
|
175
178
|
|
|
176
179
|
# Determine the installed pydantic-core version dynamically
|
|
177
180
|
import pydantic_core
|