devel/py-cgen 2025.1_2 DragonFly
C/C++ source generation from an AST
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 43.2 KiB, 316.0 KiB installed
Description
cgen offers a simple abstract syntax tree for C and related languages (C++/CUDA/OpenCL) to allow structured code generation from Python.
cgen can be used to generate C code programmatically, which is useful for:
- Code generators
- Domain-specific language compilers
- High-performance computing applications
- GPU kernel generation (CUDA/OpenCL)
To represent mathematical expressions, cgen can be used with pymbolic.
In the other systems
The newest version among them is 2025.1, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/py-cgen | 2025.1_2 newest | none known | - | [email protected] | - |
| FreeBSD | devel/py-cgen | 2025.1_2 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/py-cgen | 2025.1_2 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-cgen | 2025.1_2 newest | no data | - | [email protected] | - |
Version history 1
- 2025.1
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
pkg install py312-cgen
From DPorts:
cd /usr/dports/devel/py-cgen && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 4
No port depends on this one.