forked from run-house/runhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
collect_env.py
58 lines (54 loc) Β· 1.22 KB
/
collect_env.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import os
import platform
import sys
try:
from pip._internal.operations import freeze
except ImportError: # pip < 10.0
from pip.operations import freeze
py_version = sys.version.replace("\n", " ")
py_platform = platform.platform()
pkgs = freeze.freeze()
pip_pkgs = "\n".join(
pkg
for pkg in pkgs
if any(
name in pkg
for name in {
# runhouse
"runhouse",
# required installs
"wheel",
"rich",
"fsspec",
"pyarrow",
"sshtunnel",
"sshfs",
"typer",
"skypilot",
"fastapi",
"uvicorn",
"pyOpenSSL"
# aws
"awscli",
"boto3",
"pycryptodome",
"s3fs",
# azure
"azure-cli",
"azure-core",
# gcp
"google-api-python-client",
"google-cloud-storage",
"gcsfs",
# docker
"docker",
}
)
)
print(f"Python Platform: {py_platform}")
print(f"Python Version: {py_version}")
print()
print(f"Relevant packages: \n{pip_pkgs}")
print()
os.system("sky check")
os.system("sky status --refresh")