Switch from venv to conda for environment management
Build Server .exe / build (push) Failing after 2m30s
Build Server .exe / build (push) Failing after 2m30s
- start.bat and start.sh now create conda env (paperdash, Python 3.11) - README updated with conda setup instructions - Fixes pyhwinfo installation issues on Python 3.12+
This commit is contained in:
+8
-8
@@ -1,20 +1,20 @@
|
||||
@echo off
|
||||
REM PaperDash Server Startup Script
|
||||
REM Creates venv if needed, installs dependencies, and starts the server
|
||||
REM Creates conda env if needed, installs dependencies, and starts the server
|
||||
|
||||
setlocal
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
REM Create venv if it doesn't exist
|
||||
if not exist "venv" (
|
||||
echo Creating virtual environment...
|
||||
python -m venv venv
|
||||
REM Check if conda env exists
|
||||
if not exist "conda_env" (
|
||||
echo Creating conda environment...
|
||||
conda create -y -n paperdash python=3.11
|
||||
call conda activate paperdash
|
||||
) else (
|
||||
call conda activate paperdash
|
||||
)
|
||||
|
||||
REM Activate venv
|
||||
call venv\Scripts\activate.bat
|
||||
|
||||
REM Install dependencies
|
||||
echo Installing dependencies...
|
||||
pip install --upgrade pip
|
||||
|
||||
Reference in New Issue
Block a user