scripts/install.py

branch
eric7
changeset 10503
6a37b6ac3928
parent 10496
f9925e08dbce
child 10513
805a0450862d
equal deleted inserted replaced
10502:89b8e0a67fde 10503:6a37b6ac3928
67 createInstallInfoFile = True 67 createInstallInfoFile = True
68 installInfoName = "eric7install.json" 68 installInfoName = "eric7install.json"
69 installInfo = {} 69 installInfo = {}
70 installCwd = "" 70 installCwd = ""
71 71
72 # Define blacklisted versions of the prerequisites 72 # Define blocklisted versions of the prerequisites
73 BlackLists = { 73 BlockLists = {
74 "sip": [], 74 "sip": [],
75 "PyQt6": [], 75 "PyQt6": [],
76 "QScintilla2": [], 76 "QScintilla2": [],
77 } 77 }
78 PlatformsBlackLists = { 78 PlatformsBlockLists = {
79 "freebsd": { 79 "freebsd": {
80 "sip": [], 80 "sip": [],
81 "PyQt6": [], 81 "PyQt6": [],
82 "QScintilla2": [], 82 "QScintilla2": [],
83 }, 83 },
1736 1736
1737 if requiredMissing and optionalMissing: 1737 if requiredMissing and optionalMissing:
1738 print("Alternatively you may install all of them with:") 1738 print("Alternatively you may install all of them with:")
1739 print(" {0} install-dependencies.py --all".format(sys.executable)) 1739 print(" {0} install-dependencies.py --all".format(sys.executable))
1740 1740
1741 # determine the platform dependent black list 1741 # determine the platform dependent block list
1742 if sys.platform.startswith(("win", "cygwin")): 1742 if sys.platform.startswith(("win", "cygwin")):
1743 PlatformBlackLists = PlatformsBlackLists["windows"] 1743 PlatformBlockLists = PlatformsBlockLists["windows"]
1744 elif sys.platform.startswith("linux"): 1744 elif sys.platform.startswith("linux"):
1745 PlatformBlackLists = PlatformsBlackLists["linux"] 1745 PlatformBlockLists = PlatformsBlockLists["linux"]
1746 elif sys.platform.startswith("freebsd"): 1746 elif sys.platform.startswith("freebsd"):
1747 PlatformBlackLists = PlatformsBlackLists["freebsd"] 1747 PlatformBlockLists = PlatformsBlockLists["freebsd"]
1748 else: 1748 else:
1749 PlatformBlackLists = PlatformsBlackLists["mac"] 1749 PlatformBlockLists = PlatformsBlockLists["mac"]
1750 1750
1751 print("\nVersion Information") 1751 print("\nVersion Information")
1752 print("-------------------") 1752 print("-------------------")
1753 1753
1754 print("Python: {0:d}.{1:d}.{2:d}".format(*sys.version_info[:3])) 1754 print("Python: {0:d}.{1:d}.{2:d}".format(*sys.version_info[:3]))
1778 " a recent development release.".format( 1778 " a recent development release.".format(
1779 versionToStr(requiredVersions["sip"]) 1779 versionToStr(requiredVersions["sip"])
1780 ) 1780 )
1781 ) 1781 )
1782 exit(3) 1782 exit(3)
1783 # check for blacklisted versions 1783 # check for blocklisted versions
1784 for vers in BlackLists["sip"] + PlatformBlackLists["sip"]: 1784 for vers in BlockLists["sip"] + PlatformBlockLists["sip"]:
1785 if vers == sip.SIP_VERSION: 1785 if vers == sip.SIP_VERSION:
1786 print( 1786 print(
1787 "Sorry, sip version {0} is not compatible with eric.".format( 1787 "Sorry, sip version {0} is not compatible with eric.".format(
1788 versionToStr(vers) 1788 versionToStr(vers)
1789 ) 1789 )
1804 " a recent development release.".format( 1804 " a recent development release.".format(
1805 versionToStr(requiredVersions["pyqt6"]) 1805 versionToStr(requiredVersions["pyqt6"])
1806 ) 1806 )
1807 ) 1807 )
1808 exit(4) 1808 exit(4)
1809 # check for blacklisted versions 1809 # check for blocklisted versions
1810 for vers in BlackLists["PyQt6"] + PlatformBlackLists["PyQt6"]: 1810 for vers in BlockLists["PyQt6"] + PlatformBlockLists["PyQt6"]:
1811 if vers == PYQT_VERSION: 1811 if vers == PYQT_VERSION:
1812 print( 1812 print(
1813 "Sorry, PyQt version {0} is not compatible with eric.".format( 1813 "Sorry, PyQt version {0} is not compatible with eric.".format(
1814 versionToStr(vers) 1814 versionToStr(vers)
1815 ) 1815 )
1833 " a recent development release.".format( 1833 " a recent development release.".format(
1834 versionToStr(requiredVersions["pyqt6-qscintilla"]) 1834 versionToStr(requiredVersions["pyqt6-qscintilla"])
1835 ) 1835 )
1836 ) 1836 )
1837 exit(5) 1837 exit(5)
1838 # check for blacklisted versions 1838 # check for blocklisted versions
1839 for vers in BlackLists["QScintilla2"] + PlatformBlackLists["QScintilla2"]: 1839 for vers in BlockLists["QScintilla2"] + PlatformBlockLists["QScintilla2"]:
1840 if vers == QSCINTILLA_VERSION: 1840 if vers == QSCINTILLA_VERSION:
1841 print( 1841 print(
1842 "Sorry, QScintilla2 version {0} is not compatible with" 1842 "Sorry, QScintilla2 version {0} is not compatible with"
1843 " eric.".format(versionToStr(vers)) 1843 " eric.".format(versionToStr(vers))
1844 ) 1844 )

eric ide

mercurial