mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
Extracted PyTorch URL from command output and printed it.
This commit is contained in:
parent
c71d98f1b2
commit
a376f91de6
1 changed files with 6 additions and 1 deletions
7
setup.py
7
setup.py
|
@ -33,7 +33,12 @@ cmd = [
|
|||
|
||||
result = subprocess.check_output(cmd, text=True)
|
||||
|
||||
print(result)
|
||||
url_match = re.search(r'(https://download\.pytorch\.org/[^\s]+)', result)
|
||||
if url_match:
|
||||
pytorch_url = url_match.group(1)
|
||||
print(f"PyTorch URL: {pytorch_url}")
|
||||
else:
|
||||
print("PyTorch URL not found in the output")
|
||||
|
||||
import sys
|
||||
sys.exit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue