@@ -78,27 +78,26 @@ jobs:
7878 $Content | Set-Content $PthFile -Encoding UTF8
7979
8080 # 3. Install Dependencies via uv
81- echo "Installing dependencies..."
82- $SitePackages = "$Dest/Lib/site-packages"
83- New-Item -ItemType Directory -Force -Path $SitePackages
84-
85- # Use pip to install uv first
86- pip install uv
87- if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
88-
89- # Install torch first (CPU only)
90- uv pip install --target $SitePackages torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --system
91- if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
92-
93- # Install dependencies from pyproject.toml
94- # Note: uv pip install . needs to run where pyproject.toml is
95- cd PeroCore-Electron/backend
96- uv pip install --target $SitePackages . --system
97- if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
81+ echo "Installing dependencies..."
82+ $SitePackages = (New-Item -ItemType Directory -Force -Path "$Dest/Lib/site-packages").FullName
83+ echo "Site-packages absolute path: $SitePackages"
84+
85+ # Use pip to install uv first
86+ pip install uv
87+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
88+
89+ # Install torch first (CPU only)
90+ uv pip install --target $SitePackages torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --system
91+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
92+
93+ # Install dependencies from pyproject.toml
94+ Push-Location PeroCore-Electron/backend
95+ uv pip install --target $SitePackages . --system
96+ if ($LASTEXITCODE -ne 0) { Pop-Location; exit $LASTEXITCODE }
97+ Pop-Location
9898
9999 # Clean up
100- cd ../..
101- Remove-Item $ZipPath
100+ Remove-Item $ZipPath
102101
103102 - name : Setup Rust
104103 uses : dtolnay/rust-toolchain@stable
0 commit comments