INNER CODE UNIT · Python

InstallDependencies

loxy0devlp/RedTiger-Tools · setup.py:30

def InstallDependencies():
    print(f"{INFO} Installing the Python dependencies required for the RedTiger-Tools:")
    try: subprocess.run([sys.executable, "-m", "pip", "install", "--upgrade", "pip", "--break-system-packages"], check=True)
    except: 
        try: subprocess.run([sys.executable, "-m", "pip", "install", "--upgrade", "pip"], check=True)
        except: pass
    subprocess.run([sys.executable, "-m", "pip", "install", "-r", "requirements.txt", "--break-system-packages"], check=True)
    
def Choice(mode):
    if mode.lower().strip() in ("1", "01", "enable"):    version = "enable"
    elif mode.lower().strip() in ("2", "02", "disable"): version = "disable"
    else: 
        version = None
        print(f"{ERROR} Invalid choice.")
    return version

def InterfaceConfiguration(SettingsUpdate, version_decorated, version_interface):
    if not version_decorated or not version_interface: print(f"\n{INFO} Interface configuration:")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…