server: use separate python version for pip checks

This commit is contained in:
Koushik Dutta
2024-03-08 18:04:35 -08:00
parent 7a0d070c04
commit 4c8eb9639f
3 changed files with 5 additions and 5 deletions

View File

@@ -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",

View File

@@ -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)

View File

@@ -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),