devel/py-cgen 2025.1_2 FreeBSD
C/C++ source generation from an AST
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 46.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.
Install
Binary package:
pkg install py312-cgen
From the ports tree:
cd /usr/ports/devel/py-cgen/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-cgen>0:devel/py-cgen
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2025.1_2 | 2025.1_2 | - | - | 2025.1_2 |
| FreeBSD:14:quarterly | 2025.1_2 | 2025.1_2 | n/a | - | 2025.1_2 |
| FreeBSD:15:latest | 2025.1_2 | 2025.1_2 | n/a | - | - |
| FreeBSD:15:quarterly | 2025.1_2 | 2025.1_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2025.1_2 | 2025.1_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}hatchling>0: devel/py-hatchling
Runtime 3
${PYTHON_PKGNAMEPREFIX}numpy>=1.6: math/py-numpy${PYTHON_PKGNAMEPREFIX}pytools>=2022.1.14: devel/py-pytools${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.5: devel/py-typing-extensions
Test 1
${PYTHON_PKGNAMEPREFIX}ruff>0: devel/py-ruff
The full lists below include those, and their dependencies in turn.
Build dependencies 19
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-build
- devel/py-hatchling
- devel/py-installer
- devel/py-packaging
- devel/py-pathspec
- devel/py-pluggy
- devel/py-pyproject-hooks
- devel/py-trove-classifiers
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-tomlkit
Run dependencies 21
- archivers/liblz4
- archivers/zstd
- devel/binutils
- devel/gettext-runtime
- devel/libffi
- devel/py-platformdirs
- devel/py-pytools
- devel/py-typing-extensions
- devel/readline
- lang/gcc14
- lang/python312
- math/gmp
- math/mpc
- math/mpdecimal
- math/mpfr
- math/openblas
- math/py-numpy
- print/indexinfo
- security/c-siphash
- security/py-siphash24
- textproc/expat2
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| cgen-2025.1.tar.gz | 19236 | 79f01e010d49c13e58b4ca8f2d4996a6b7178968f5f2d906262733480ae7a2d4 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.