Building from Source¶
Learn how to build Neonize from source code.
Prerequisites¶
Required Tools¶
- Python 3.10+
- Go 1.19+ (for building goneonize)
- Git
- C Compiler (gcc/clang)
Optional Tools¶
- uv - Modern Python package manager (recommended)
- Docker - For containerized builds
Quick Build¶
1. Clone Repository¶
2. Install Dependencies¶
Using uv:
| Bash | |
|---|---|
Using pip:
| Bash | |
|---|---|
3. Build goneonize¶
| Bash | |
|---|---|
Or manually:
Platform-Specific Builds¶
Linux¶
| Bash | |
|---|---|
macOS¶
| Bash | |
|---|---|
For Apple Silicon:
| Bash | |
|---|---|
Windows¶
| Bash | |
|---|---|
Building Documentation¶
Install Documentation Dependencies¶
| Bash | |
|---|---|
Build HTML Documentation¶
| Bash | |
|---|---|
Or manually:
| Bash | |
|---|---|
Serve Documentation Locally¶
| Bash | |
|---|---|
Visit http://127.0.0.1:8000
Building Distribution Packages¶
Build Wheel¶
This creates:
- dist/neonize-*.whl - Wheel package
- dist/neonize-*.tar.gz - Source distribution
Install from Wheel¶
| Bash | |
|---|---|
Development Build¶
For active development:
Docker Build¶
Build Image¶
| Docker | |
|---|---|
Build:
| Bash | |
|---|---|
Cross-Compilation¶
Using Docker for Cross-Platform Builds¶
| Bash | |
|---|---|
Troubleshooting¶
Go Build Errors¶
Issue: go: cannot find main module
Solution:
C Compiler Not Found¶
Issue: gcc: command not found
Solution:
Python Extension Build Fails¶
Issue: Missing Python headers
Solution:
Verification¶
After building, verify the installation:
| Python | |
|---|---|
Build Optimization¶
Optimized Go Build¶
| Bash | |
|---|---|
Flags:
- -s - Strip symbol table
- -w - Strip DWARF debugging info
Python Build Options¶
| Bash | |
|---|---|
CI/CD Integration¶
Example GitHub Actions workflow:
| YAML | |
|---|---|
Next Steps¶
- Testing - Run tests
- Contributing - Contribute code
- Development Guide - Development overview