-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_packages.py
executable file
·86 lines (63 loc) · 1.06 KB
/
test_packages.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
"""
A quick script to check for the present of the required packages, and
print a warning for missing packages.
"""
alldone=0
try:
import Tkinter
except:
print "Tkinter not installed\n"
alldone=1
try:
import pylab
except:
print "pylab not installed\n"
alldone=1
try:
import numpy
except:
print "numpy not installed\n"
alldone=1
try:
import scipy
except:
print "scipy not installed\n"
alldone=1
try:
import pyfits
except:
print "pyfits not installed\n"
alldone=1
try:
import pickle
except:
print "pickle not installed\n"
alldone=1
try:
import matplotlib
except:
print "matplotlib not installed\n"
alldone=1
try:
import os
except:
print "os not installed\n"
alldone=1
try:
import Pmw
except:
print "Pmw not installed\n"
alldone=1
try:
import string
except:
print "string not installed\n"
alldone=1
try:
import sys
except:
print "sys not installed\n"
alldone=1
if (alldone==0):
print "All packages found\n"