-
-
Notifications
You must be signed in to change notification settings - Fork 273
Description
Add environment setup and cleanup scripts
Benefit: Install more easy and secure #!!
I put the script on my github, you can use if you want: https://github.com/BRUNEXX13/turing-smart-screen
Problem:
Setting up the Python environment for this project requires multiple manual steps: installing system dependencies, Python packages with exact versions, creating a virtual environment, and running configure.py. Cleanup is also cumbersome.
Solution:
Add automated scripts for environment management:
install_env.sh – Installs system dependencies, creates virtual environment, installs Python packages, and runs configure.py.
uninstall_env.sh – Removes virtual environment, Python packages, and system development libraries.
uninstall_env_safe.sh – Removes only the virtual environment and Python packages inside it, leaving system packages untouched.
Key Features:
Works on Ubuntu/Debian and Fedora/RHEL/CentOS
Force-reinstalls critical Python packages (ruamel.yaml, Pillow, GPUtil) to prevent import errors
Automatically activates the virtual environment at the end of setup
Alternatives Tested:
Manual installation of dependencies using apt/dnf and pip. Error-prone, time-consuming, and not reproducible.
Environment:
Branch: main
OS: Ubuntu 22.04 / Fedora 38
Python: 3.13
Hardware: Intel/AMD CPU, NVIDIA GPU, Raspberry Pi 5
Additional context:
These scripts streamline setup, reduce errors, and improve onboarding for new contributors.
Tags: scripts, setup, python, environment, automation