summaryrefslogtreecommitdiff
blob: db477e55a87f13ea4b33dabdbc818fa4ceba16f9 (plain)
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
diff -Nur PythonPackages.orig/FuncDesigner/FuncDesigner/__init__.py PythonPackages/FuncDesigner/FuncDesigner/__init__.py
--- PythonPackages.orig/FuncDesigner/FuncDesigner/__init__.py	2011-12-15 15:43:56.000000000 +0000
+++ PythonPackages/FuncDesigner/FuncDesigner/__init__.py	2012-01-07 16:26:48.000000000 +0000
@@ -15,31 +15,3 @@
 from interpolate import scipy_UnivariateSpline as interpolator
 from integrate import integrator
 __version__ = '0.37'
-
-isE = False
-try:
-    import enthought
-    isE = True
-except ImportError:
-    pass
-try:
-    import envisage
-    import mayavi
-    isE = True
-except ImportError:
-    pass
-try:
-    import xy
-    isE = False
-except ImportError:
-    pass
-  
-if isE:
-    s = """
-    Seems like you are using OpenOpt from 
-    commercial Enthought Python Distribution;
-    consider using free GPL-licensed alternatives
-    PythonXY (http://www.pythonxy.com) or
-    Sage (http://sagemath.org) instead.
-    """
-    print(s)
diff -Nur PythonPackages.orig/OpenOpt/openopt/__init__.py PythonPackages/OpenOpt/openopt/__init__.py
--- PythonPackages.orig/OpenOpt/openopt/__init__.py	2011-10-23 19:17:28.000000000 +0100
+++ PythonPackages/OpenOpt/openopt/__init__.py	2012-01-07 16:26:19.000000000 +0000
@@ -19,33 +19,6 @@
 from mfa import MFA
 
 
-isE = False
-try:
-    import enthought
-    isE = True
-except ImportError:
-    pass
-try:
-    import envisage
-    import mayavi
-    isE = True
-except ImportError:
-    pass
-try:
-    import xy
-    isE = False
-except ImportError:
-    pass
-  
-if isE:
-    s = """
-    Seems like you are using OpenOpt from 
-    commercial Enthought Python Distribution;
-    consider using free GPL-licensed alternatives
-    PythonXY (http://www.pythonxy.com) or
-    Sage (http://sagemath.org) instead.
-    """
-    print(s)
 
     
 #__all__ = filter(lambda s:not s.startswith('_'),dir())