forked from jorgesolebur/CumulusCI_AzureDevOps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_deps.py
More file actions
38 lines (30 loc) · 944 Bytes
/
Copy pathcheck_deps.py
File metadata and controls
38 lines (30 loc) · 944 Bytes
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
#!/usr/bin/env python3
"""
Check dependencies manually
"""
def check_dependencies():
"""Check if all required dependencies are installed."""
print("🔍 Checking Dependencies...")
dependencies = [
("cumulusci-plus", "cumulusci"),
("azure-devops", "azure.devops"),
("requests", "requests"),
("humanfriendly", "humanfriendly"),
("distro", "distro"),
("packaging", "packaging"),
]
all_good = True
for dep_name, import_name in dependencies:
try:
__import__(import_name)
print(f"✅ {dep_name} is installed")
except ImportError:
print(f"❌ {dep_name} is NOT installed")
all_good = False
if all_good:
print("\n✅ All dependencies are properly installed!")
else:
print("\n❌ Some dependencies are missing!")
return all_good
if __name__ == "__main__":
check_dependencies()