mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-03 18:24:53 +00:00
feat: Add CadQuery wrapper library for parametric CAD modeling
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>
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if command -v python3 >/dev/null 2>&1; then
|
||||
echo "Python is already installed." && exit 0
|
||||
fi
|
||||
|
||||
echo "Python not found. Attempting installation..."
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
sudo apt-get update && sudo apt-get install -y python3 python3-pip
|
||||
elif command -v yum >/dev/null 2>&1; then
|
||||
sudo yum install -y python3 python3-pip
|
||||
elif command -v brew >/dev/null 2>&1; then
|
||||
brew install python
|
||||
else
|
||||
echo "Unsupported package manager. Please install Python manually." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v python >/dev/null 2>&1 && command -v python3 >/dev/null 2>&1; then
|
||||
sudo ln -s "$(command -v python3)" /usr/local/bin/python || true
|
||||
fi
|
||||
|
||||
echo "Python installed successfully."
|
||||
Reference in New Issue
Block a user