@scrypted/server 0.115.11 → 0.115.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/python/plugin_remote.py +9 -2
package/package.json
CHANGED
package/python/plugin_remote.py
CHANGED
@@ -763,9 +763,11 @@ class PluginRemote:
|
|
763
763
|
pip_target, "requirements.optional"
|
764
764
|
)
|
765
765
|
|
766
|
-
need_pip =
|
766
|
+
need_pip = False
|
767
|
+
# pip is needed if there's a requiremnts.txt file that has changed.
|
767
768
|
if str_requirements:
|
768
769
|
need_pip = need_requirements(requirements_basename, str_requirements)
|
770
|
+
# pip is needed if the base scrypted requirements have changed.
|
769
771
|
if not need_pip:
|
770
772
|
need_pip = need_requirements(
|
771
773
|
scrypted_requirements_basename, SCRYPTED_REQUIREMENTS
|
@@ -798,7 +800,12 @@ class PluginRemote:
|
|
798
800
|
print("requirements.txt (up to date)")
|
799
801
|
print(str_requirements)
|
800
802
|
|
801
|
-
|
803
|
+
|
804
|
+
# use the zip path first
|
805
|
+
sys.path.insert(0, zipPath)
|
806
|
+
if not debug:
|
807
|
+
# needed for binary extensions
|
808
|
+
sys.path.insert(0, plugin_zip_paths.get("unzipped_path"))
|
802
809
|
sys.path.insert(0, pip_target)
|
803
810
|
|
804
811
|
self.systemManager = SystemManager(self.api, self.systemState)
|