-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_installation.py
More file actions
44 lines (37 loc) · 982 Bytes
/
Copy pathtest_installation.py
File metadata and controls
44 lines (37 loc) · 982 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
39
40
41
42
43
44
#!/usr/bin/env python3
"""
Installation Test Script
Tests all components and reports status
"""
import sys
def main():
print(f'Python: {sys.version}')
# Test core dependencies
try:
import pandas, numpy, requests, yaml, scipy
print('✓ Core dependencies OK')
except ImportError as e:
print(f'✗ Core dependency error: {e}')
sys.exit(1)
# Test ML support
try:
import sklearn, joblib
print('✓ ML support OK')
except ImportError:
print('- ML support not available')
# Test KML support
try:
import simplekml
print('✓ KML support OK')
except ImportError:
print('- KML support not available')
# Test GUI support
try:
import tkinter
print('✓ GUI support OK')
except ImportError:
print('✗ GUI support not available')
sys.exit(1)
print('Installation test passed!')
if __name__ == '__main__':
main()