| name | build |
| description | Build and install the project in development mode. Handles venv creation and editable installs. Invoke with /build. |
| lifecycle | experimental |
Build Skill
Build and install the project for development.
Usage
/build # Install in dev mode
/build --clean # Clean and reinstall
/build --prod # Build distribution
Process
-
Setup virtual environment
[ -d .venv ] || python3 -m venv .venv
source .venv/bin/activate
-
Install dependencies
pip install --upgrade pip
pip install -e ".[dev]"
pip install -e .
-
Verify installation
pip show <package-name>
python -c "import <package>; print(<package>.__version__)"
Quick Commands
python3 -m venv .venv && source .venv/bin/activate && pip install -e ".[dev]"
pip install -e . --force-reinstall
pip install build && python -m build
pip install -e . --dry-run
Build Distribution
pip install build
python -m build
ls dist/
pip install dist/*.whl
Troubleshooting
- No pyproject.toml: Create one or use setup.py
- Missing deps: Check [project.dependencies] in pyproject.toml
- Import errors after install: Try
pip install -e . --force-reinstall
- Conflicting versions:
pip install --upgrade-strategy eager -e .
Output
Installing: my-package (editable)
Successfully installed my-package-1.0.0 dep1-2.0 dep2-3.0
Installed entry points:
my-cli = my_package.cli:main
Ready for development!