@scrypted/server 0.36.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 +13 -2
package/package.json
CHANGED
package/python/plugin_remote.py
CHANGED
@@ -603,12 +603,23 @@ 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,
|
614
|
+
# preevent uninstalling system packages
|
609
615
|
'--ignore-installed',
|
610
616
|
'--prefix', python_prefix
|
611
|
-
|
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)
|
612
623
|
|
613
624
|
while True:
|
614
625
|
line = p.stdout.readline()
|