@scrypted/server 0.36.0 → 0.38.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 +15 -3
package/package.json
CHANGED
package/python/plugin_remote.py
CHANGED
@@ -603,12 +603,24 @@ class PluginRemote:
|
|
603
603
|
f.write(requirements)
|
604
604
|
f.close()
|
605
605
|
|
606
|
-
|
606
|
+
try:
|
607
|
+
pythonVersion = packageJson['scrypted']['pythonVersion']
|
608
|
+
except:
|
609
|
+
pythonVersion = None
|
610
|
+
|
611
|
+
pipArgs = [
|
607
612
|
sys.executable,
|
608
613
|
'-m', 'pip', 'install', '-r', requirementstxt,
|
609
|
-
'--ignore-installed',
|
610
614
|
'--prefix', python_prefix
|
611
|
-
|
615
|
+
]
|
616
|
+
if pythonVersion:
|
617
|
+
print('Specific Python verison requested. Forcing reinstall.')
|
618
|
+
# prevent uninstalling system packages.
|
619
|
+
pipArgs.append('--ignore-installed')
|
620
|
+
# force reinstall even if it exists in system packages.
|
621
|
+
pipArgs.append('--force-reinstall')
|
622
|
+
|
623
|
+
p = subprocess.Popen(pipArgs, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
612
624
|
|
613
625
|
while True:
|
614
626
|
line = p.stdout.readline()
|