Skip to content

Commit

Permalink
server: nuke python prefix prior to install to purge old conflicting …
Browse files Browse the repository at this point in the history
…deps
  • Loading branch information
koush committed Mar 1, 2023
1 parent 39c0759 commit f359a71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/python/plugin_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import asyncio
import base64
import gc
import json
import sys
import os
import platform
Expand All @@ -21,7 +20,6 @@
from os import sys
from typing import Any, List, Optional, Set, Tuple

import aiofiles
import scrypted_python.scrypted_sdk.types
from scrypted_python.scrypted_sdk import ScryptedStatic, PluginFork
from scrypted_python.scrypted_sdk.types import Device, DeviceManifest, EventDetails, ScryptedInterfaceProperty, Storage
Expand Down Expand Up @@ -330,6 +328,9 @@ async def loadZip(self, packageJson, zipData, options: dict=None):
pass

if need_pip:
shutil.rmtree(python_prefix)
os.makedirs(python_prefix)

print('requirements.txt (outdated)')
print(str_requirements)

Expand Down

0 comments on commit f359a71

Please sign in to comment.