Skip to content

Conversation

@dbort
Copy link
Contributor

@dbort dbort commented Oct 24, 2024

wget often isn't available on macOS. curl is typically available on both macOS and Linux.

Test Plan

$ cd /tmp
$ (rm -rf ww; mkdir -p ww; cd ww; wget https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py)
--2024-10-23 17:40:51--  https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py
Resolving fwdproxy (fwdproxy)... 2401:db00:ff:ff8a:face:b00c:0:1e10
Connecting to fwdproxy (fwdproxy)|2401:db00:ff:ff8a:face:b00c:0:1e10|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 24366 (24K) [text/plain]
Saving to: ‘collect_env.py’

collect_env.py                            100%[=====================================================================================>]  23.79K  --.-KB/s    in 0.001s  

2024-10-23 17:40:51 (20.6 MB/s) - ‘collect_env.py’ saved [24366/24366]
$ (rm -rf cc; mkdir -p cc; cd cc; curl -O https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24366  100 24366    0     0   424k      0 --:--:-- --:--:-- --:--:--  424k
$ diff /tmp/ww/collect_env.py /tmp/cc/collect_env.py 
(no output)
$ head /tmp/ww/collect_env.py 
# mypy: allow-untyped-defs

# Unlike the rest of the PyTorch this file must be python2 compliant.
# This script outputs relevant system environment info
# Run it with `python collect_env.py` or `python -m torch.utils.collect_env`
import datetime
import json
import locale
import re
import subprocess

`wget` often isn't available on macOS. `curl` is typically available on both macOS and Linux.
@dbort dbort requested a review from mergennachin October 24, 2024 00:39
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 24, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6476

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 67701ab with merge base cb25809 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 24, 2024
@github-actions
Copy link

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the stale PRs inactive for over 60 days label Aug 28, 2025
@github-actions
Copy link

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. stale PRs inactive for over 60 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants