scripts/install.py

branch
eric7-maintenance
changeset 10101
34f74c19ed7a
parent 10079
0222a480e93d
parent 10091
ac6edcfe7831
child 10148
31ba20629af4
diff -r 816bc1c6db77 -r 34f74c19ed7a scripts/install.py
--- a/scripts/install.py	Sun May 28 14:40:38 2023 +0200
+++ b/scripts/install.py	Sun Jul 02 17:39:33 2023 +0200
@@ -210,6 +210,15 @@
             platBinDir = os.path.expanduser("~/bin")
 
     modDir = sysconfig.get_path("platlib")
+    if not os.access(modDir, os.W_OK):
+        # can't write to the standard path, use the 'user' path instead
+        if sys.platform.startswith(("win", "cygwin")):
+            scheme = "nt_user"
+        elif sys.platform == "darwin":
+            scheme = "osx_framework_user"
+        else:
+            scheme = "posix_user"
+        modDir = sysconfig.get_path("platlib", scheme)
     pyModDir = modDir
 
     pyqtDataDir = os.path.join(modDir, "PyQt6")
@@ -516,6 +525,7 @@
         "eric7_iconeditor",
         "eric7_ide",
         "eric7_pdf",
+        "eric7_pip",
         "eric7_plugininstall",
         "eric7_pluginrepository",
         "eric7_pluginuninstall",
@@ -755,6 +765,7 @@
         "eric7_iconeditor",
         "eric7_ide",
         "eric7_pdf",
+        "eric7_pip",
         "eric7_plugininstall",
         "eric7_pluginrepository",
         "eric7_pluginuninstall",
@@ -870,6 +881,11 @@
             ["*.json"],
         )
         copyTree(
+            os.path.join(eric7SourceDir, "MicroPython", "BluetoothDialogs", "data"),
+            os.path.join(cfg["ericDir"], "MicroPython", "BluetoothDialogs", "data"),
+            ["*.yaml"],
+        )
+        copyTree(
             os.path.join(eric7SourceDir, "UI", "data"),
             os.path.join(cfg["ericDir"], "UI", "data"),
             ["*.css"],

eric ide

mercurial