mirror of
https://github.com/koush/scrypted.git
synced 2026-05-04 21:30:30 +01:00
server: use separate python version for pip checks
This commit is contained in:
4
server/package-lock.json
generated
4
server/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/server",
|
||||
"version": "0.94.14",
|
||||
"version": "0.94.15",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/server",
|
||||
"version": "0.94.14",
|
||||
"version": "0.94.15",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@bjia56/portable-python-3.9": "^0.1.10",
|
||||
|
||||
@@ -547,8 +547,8 @@ class PluginRemote:
|
||||
|
||||
python_versioned_directory = '%s-%s-%s' % (
|
||||
python_version, platform.system(), platform.machine())
|
||||
SCRYPTED_BASE_VERSION = os.environ.get('SCRYPTED_BASE_VERSION')
|
||||
python_versioned_directory += '-' + SCRYPTED_BASE_VERSION
|
||||
SCRYPTED_PYTHON_VERSION = os.environ.get('SCRYPTED_PYTHON_VERSION')
|
||||
python_versioned_directory += '-' + SCRYPTED_PYTHON_VERSION
|
||||
|
||||
pip_target = os.path.join(
|
||||
plugin_volume, python_versioned_directory)
|
||||
|
||||
@@ -87,7 +87,7 @@ export class PythonRuntimeWorker extends ChildProcessWorker {
|
||||
stdio: ['pipe', 'pipe', 'pipe', 'pipe', 'pipe'],
|
||||
env: Object.assign({
|
||||
// rev this if the base python version or server characterstics change.
|
||||
SCRYPTED_BASE_VERSION: '20240308',
|
||||
SCRYPTED_PYTHON_VERSION: '20240308',
|
||||
PYTHONUNBUFFERED: '1',
|
||||
PYTHONPATH,
|
||||
}, gstEnv, process.env, env),
|
||||
|
||||
Reference in New Issue
Block a user