@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.10",
@@ -603,12 +603,23 @@ class PluginRemote:
603
603
  f.write(requirements)
604
604
  f.close()
605
605
 
606
- p = subprocess.Popen([
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
- ], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
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()