Package: eric / 17.01-1

06_no_blacklist.patch Patch series | download
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
Disables blacklisting of unusable sip versions. Usable versions is handled
in the control file. 
--- a/eric/Globals/__init__.py
+++ b/eric/Globals/__init__.py
@@ -66,62 +66,9 @@
     Module functions to check for blacklisted versions of the prerequisites.
     
     @return flag indicating good versions were found (boolean)
+
+    Not used in Debian, always return True
     """
-    from install import BlackLists, PlatformsBlackLists
-    
-    # determine the platform dependent black list
-    if isWindowsPlatform():
-        PlatformBlackLists = PlatformsBlackLists["windows"]
-    elif isLinuxPlatform():
-        PlatformBlackLists = PlatformsBlackLists["linux"]
-    else:
-        PlatformBlackLists = PlatformsBlackLists["mac"]
-    
-    # check version of sip
-    try:
-        import sipconfig
-        sipVersion = sipconfig.Configuration().sip_version_str
-        # always assume, that snapshots are good
-        if "snapshot" not in sipVersion:
-            # check for blacklisted versions
-            for vers in BlackLists["sip"] + PlatformBlackLists["sip"]:
-                if vers == sipVersion:
-                    print(
-                        'Sorry, sip version {0} is not compatible with eric6.'
-                        .format(vers))
-                    print('Please install another version.')
-                    return False
-    except ImportError:
-        pass
-    
-    # check version of PyQt
-    from PyQt5.QtCore import PYQT_VERSION_STR
-    pyqtVersion = PYQT_VERSION_STR
-    # always assume, that snapshots are good
-    if "snapshot" not in pyqtVersion:
-        # check for blacklisted versions
-        pyqtVariant = "PyQt{0}".format(pyqtVersion[0])
-        for vers in BlackLists[pyqtVariant] + PlatformBlackLists[pyqtVariant]:
-            if vers == pyqtVersion:
-                print('Sorry, PyQt version {0} is not compatible with eric6.'
-                      .format(vers))
-                print('Please install another version.')
-                return False
-    
-    # check version of QScintilla
-    from PyQt5.Qsci import QSCINTILLA_VERSION_STR
-    scintillaVersion = QSCINTILLA_VERSION_STR
-    # always assume, that snapshots are new enough
-    if "snapshot" not in scintillaVersion:
-        # check for blacklisted versions
-        for vers in BlackLists["QScintilla2"] + \
-                PlatformBlackLists["QScintilla2"]:
-            if vers == scintillaVersion:
-                print(
-                    'Sorry, QScintilla2 version {0} is not compatible'
-                    ' with eric6.'.format(vers))
-                print('Please install another version.')
-                return False
     
     return True