scripts/install.py

branch
eric7
changeset 10334
24300d16a154
parent 10331
c1a2ff7e3575
child 10341
3fdffd9cc21d
equal deleted inserted replaced
10333:4aa8d3b69832 10334:24300d16a154
73 "sip": [], 73 "sip": [],
74 "PyQt6": [], 74 "PyQt6": [],
75 "QScintilla2": [], 75 "QScintilla2": [],
76 } 76 }
77 PlatformsBlackLists = { 77 PlatformsBlackLists = {
78 "windows": { 78 "freebsd": {
79 "sip": [], 79 "sip": [],
80 "PyQt6": [], 80 "PyQt6": [],
81 "QScintilla2": [], 81 "QScintilla2": [],
82 }, 82 },
83 "linux": { 83 "linux": {
84 "sip": [], 84 "sip": [],
85 "PyQt6": [], 85 "PyQt6": [],
86 "QScintilla2": [], 86 "QScintilla2": [],
87 }, 87 },
88 "mac": { 88 "mac": {
89 "sip": [],
90 "PyQt6": [],
91 "QScintilla2": [],
92 },
93 "windows": {
89 "sip": [], 94 "sip": [],
90 "PyQt6": [], 95 "PyQt6": [],
91 "QScintilla2": [], 96 "QScintilla2": [],
92 }, 97 },
93 } 98 }
429 return 434 return
430 435
431 global pyModDir, progLanguages 436 global pyModDir, progLanguages
432 437
433 # Remove the menu entry for Linux systems 438 # Remove the menu entry for Linux systems
434 if sys.platform.startswith("linux"): 439 if sys.platform.startswith(("linux", "freebsd")):
435 cleanUpLinuxSpecifics() 440 cleanUpLinuxSpecifics()
436 # Remove the Desktop and Start Menu entries for Windows systems 441 # Remove the Desktop and Start Menu entries for Windows systems
437 elif sys.platform.startswith(("win", "cygwin")): 442 elif sys.platform.startswith(("win", "cygwin")):
438 cleanUpWindowsLinks() 443 cleanUpWindowsLinks()
439 444
883 else: 888 else:
884 print("\nThe API directory '{0}' is not writable.".format(cfg["apidir"])) 889 print("\nThe API directory '{0}' is not writable.".format(cfg["apidir"]))
885 print("Use the API files provided by the 'API Files' plug-in.") 890 print("Use the API files provided by the 'API Files' plug-in.")
886 891
887 # Create menu entry for Linux systems 892 # Create menu entry for Linux systems
888 if sys.platform.startswith("linux"): 893 if sys.platform.startswith(("linux", "freebsd")):
889 createLinuxSpecifics() 894 createLinuxSpecifics()
890 895
891 # Create Desktop and Start Menu entries for Windows systems 896 # Create Desktop and Start Menu entries for Windows systems
892 elif sys.platform.startswith(("win", "cygwin")): 897 elif sys.platform.startswith(("win", "cygwin")):
893 createWindowsLinks() 898 createWindowsLinks()
1712 # determine the platform dependent black list 1717 # determine the platform dependent black list
1713 if sys.platform.startswith(("win", "cygwin")): 1718 if sys.platform.startswith(("win", "cygwin")):
1714 PlatformBlackLists = PlatformsBlackLists["windows"] 1719 PlatformBlackLists = PlatformsBlackLists["windows"]
1715 elif sys.platform.startswith("linux"): 1720 elif sys.platform.startswith("linux"):
1716 PlatformBlackLists = PlatformsBlackLists["linux"] 1721 PlatformBlackLists = PlatformsBlackLists["linux"]
1722 elif sys.platform.startswith("freebsd"):
1723 PlatformBlackLists = PlatformsBlackLists["freebsd"]
1717 else: 1724 else:
1718 PlatformBlackLists = PlatformsBlackLists["mac"] 1725 PlatformBlackLists = PlatformsBlackLists["mac"]
1719 1726
1720 print("\nVersion Information") 1727 print("\nVersion Information")
1721 print("-------------------") 1728 print("-------------------")

eric ide

mercurial