mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
Python wrapper around CadQuery for simplified 3D CAD operations with clean API for creating shapes, performing boolean operations, and exporting to various formats. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
1.4 KiB
PowerShell
Executable File
36 lines
1.4 KiB
PowerShell
Executable File
# PowerShell script
|
|
Write-Host "🔍 Checking for Chocolatey..."
|
|
if (-not (Get-Command choco -ErrorAction SilentlyContinue)) {
|
|
Write-Host "📦 Installing Chocolatey..."
|
|
Set-ExecutionPolicy Bypass -Scope Process -Force
|
|
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
|
|
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
|
}
|
|
|
|
Write-Host "📦 Updating Chocolatey..."
|
|
choco upgrade chocolatey -y
|
|
|
|
Write-Host "📦 Installing build tools..."
|
|
choco install python --version=3.11.5 -y
|
|
choco install visualstudio2022buildtools --package-parameters '--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended' -y
|
|
choco install windows-sdk-10.0 -y
|
|
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
|
|
choco install ninja -y
|
|
choco install make -y
|
|
choco install git -y
|
|
choco install openssl.light -y
|
|
|
|
Write-Host "✅ Python version: $(python --version)"
|
|
|
|
Write-Host "🔍 Checking for Poetry..."
|
|
if (-not (Get-Command poetry -ErrorAction SilentlyContinue)) {
|
|
Write-Host "📦 Installing Poetry..."
|
|
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
|
|
$env:Path += ';' + $env:USERPROFILE + '\.poetry\bin'
|
|
}
|
|
|
|
Write-Host "📦 Installing dependencies..."
|
|
poetry install
|
|
|
|
Write-Host "✅ Windows setup complete. Run 'poetry shell' to activate environment."
|