@scrypted/server 0.35.0 → 0.37.0
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.
Potentially problematic release.
This version of @scrypted/server might be problematic. Click here for more details.
- package/package.json +1 -1
- package/python/plugin_remote.py +18 -2
package/package.json
CHANGED
package/python/plugin_remote.py
CHANGED
@@ -603,8 +603,24 @@ class PluginRemote:
|
|
603
603
|
f.write(requirements)
|
604
604
|
f.close()
|
605
605
|
|
606
|
-
|
607
|
-
|
606
|
+
try:
|
607
|
+
pythonVersion = packageJson['scrypted']['pythonVersion']
|
608
|
+
except:
|
609
|
+
pythonVersion = None
|
610
|
+
|
611
|
+
pipArgs = [
|
612
|
+
sys.executable,
|
613
|
+
'-m', 'pip', 'install', '-r', requirementstxt,
|
614
|
+
# preevent uninstalling system packages
|
615
|
+
'--ignore-installed',
|
616
|
+
'--prefix', python_prefix
|
617
|
+
]
|
618
|
+
if pythonVersion:
|
619
|
+
print('Specific Python verison requested. Forcing reinstall.')
|
620
|
+
pipArgs.append('--force-reinstall')
|
621
|
+
|
622
|
+
p = subprocess.Popen(pipArgs, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
623
|
+
|
608
624
|
while True:
|
609
625
|
line = p.stdout.readline()
|
610
626
|
if not line:
|