Added setup scripts

This commit is contained in:
2024-08-17 11:01:59 -05:00
parent 7487c69531
commit df0e6ad9ad
8 changed files with 180 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
import venv
import subprocess
import sys
from pathlib import Path
def main():
venv_path = Path(".venv")
if not venv_path.exists():
print("Creating virtual environment...")
venv.create(venv_path, with_pip=True)
pip_path = venv_path / "bin" / "pip" if sys.platform != "win32" else venv_path / "Scripts" / "pip.exe"
print("Installing dependencies...")
subprocess.run([str(pip_path), "install", "-r", "requirements.txt"])
print("Virtual environment setup complete.")
if __name__ == "__main__":
main()