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:
+7
-7
@@ -1,20 +1,20 @@
|
||||
#!/bin/bash
|
||||
# PaperDash Server Startup Script
|
||||
# Creates venv if needed, installs dependencies, and starts the server
|
||||
# Creates conda env if needed, installs dependencies, and starts the server
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
# Create venv if it doesn't exist
|
||||
if [ ! -d "venv" ]; then
|
||||
echo "Creating virtual environment..."
|
||||
python3 -m venv venv
|
||||
# Check if conda env exists
|
||||
if ! conda env list | grep -q "paperdash"; then
|
||||
echo "Creating conda environment..."
|
||||
conda create -y -n paperdash python=3.11
|
||||
fi
|
||||
|
||||
# Activate venv
|
||||
source venv/bin/activate
|
||||
# Activate conda env
|
||||
conda activate paperdash
|
||||
|
||||
# Install dependencies
|
||||
echo "Installing dependencies..."
|
||||
|
||||
Reference in New Issue
Block a user