scripts/install.py

branch
eric7-maintenance
changeset 10101
34f74c19ed7a
parent 10079
0222a480e93d
parent 10091
ac6edcfe7831
child 10148
31ba20629af4
equal deleted inserted replaced
10082:816bc1c6db77 10101:34f74c19ed7a
208 if not os.access(platBinDir, os.W_OK): 208 if not os.access(platBinDir, os.W_OK):
209 # install them in the user's bin directory 209 # install them in the user's bin directory
210 platBinDir = os.path.expanduser("~/bin") 210 platBinDir = os.path.expanduser("~/bin")
211 211
212 modDir = sysconfig.get_path("platlib") 212 modDir = sysconfig.get_path("platlib")
213 if not os.access(modDir, os.W_OK):
214 # can't write to the standard path, use the 'user' path instead
215 if sys.platform.startswith(("win", "cygwin")):
216 scheme = "nt_user"
217 elif sys.platform == "darwin":
218 scheme = "osx_framework_user"
219 else:
220 scheme = "posix_user"
221 modDir = sysconfig.get_path("platlib", scheme)
213 pyModDir = modDir 222 pyModDir = modDir
214 223
215 pyqtDataDir = os.path.join(modDir, "PyQt6") 224 pyqtDataDir = os.path.join(modDir, "PyQt6")
216 if os.path.exists(os.path.join(pyqtDataDir, "qsci")): 225 if os.path.exists(os.path.join(pyqtDataDir, "qsci")):
217 # it's the installer 226 # it's the installer
514 "eric7_editor", 523 "eric7_editor",
515 "eric7_hexeditor", 524 "eric7_hexeditor",
516 "eric7_iconeditor", 525 "eric7_iconeditor",
517 "eric7_ide", 526 "eric7_ide",
518 "eric7_pdf", 527 "eric7_pdf",
528 "eric7_pip",
519 "eric7_plugininstall", 529 "eric7_plugininstall",
520 "eric7_pluginrepository", 530 "eric7_pluginrepository",
521 "eric7_pluginuninstall", 531 "eric7_pluginuninstall",
522 "eric7_qregularexpression", 532 "eric7_qregularexpression",
523 "eric7_re", 533 "eric7_re",
753 "eric7_editor", 763 "eric7_editor",
754 "eric7_hexeditor", 764 "eric7_hexeditor",
755 "eric7_iconeditor", 765 "eric7_iconeditor",
756 "eric7_ide", 766 "eric7_ide",
757 "eric7_pdf", 767 "eric7_pdf",
768 "eric7_pip",
758 "eric7_plugininstall", 769 "eric7_plugininstall",
759 "eric7_pluginrepository", 770 "eric7_pluginrepository",
760 "eric7_pluginuninstall", 771 "eric7_pluginuninstall",
761 "eric7_qregularexpression", 772 "eric7_qregularexpression",
762 "eric7_re", 773 "eric7_re",
866 ) 877 )
867 copyTree( 878 copyTree(
868 os.path.join(eric7SourceDir, "MicroPython", "Tools"), 879 os.path.join(eric7SourceDir, "MicroPython", "Tools"),
869 os.path.join(cfg["ericDir"], "MicroPython", "Tools"), 880 os.path.join(cfg["ericDir"], "MicroPython", "Tools"),
870 ["*.json"], 881 ["*.json"],
882 )
883 copyTree(
884 os.path.join(eric7SourceDir, "MicroPython", "BluetoothDialogs", "data"),
885 os.path.join(cfg["ericDir"], "MicroPython", "BluetoothDialogs", "data"),
886 ["*.yaml"],
871 ) 887 )
872 copyTree( 888 copyTree(
873 os.path.join(eric7SourceDir, "UI", "data"), 889 os.path.join(eric7SourceDir, "UI", "data"),
874 os.path.join(cfg["ericDir"], "UI", "data"), 890 os.path.join(cfg["ericDir"], "UI", "data"),
875 ["*.css"], 891 ["*.css"],

eric ide

mercurial