BSD Ports

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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2025.1_22025.1_2--2025.1_2
FreeBSD:14:quarterly2025.1_22025.1_2n/a-2025.1_2
FreeBSD:15:latest2025.1_22025.1_2n/a--
FreeBSD:15:quarterly2025.1_22025.1_2n/an/an/a
FreeBSD:16:latest2025.1_22025.1_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 3

Test 1

The full lists below include those, and their dependencies in turn.

Build dependencies 19
Run dependencies 21

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
cgen-2025.1.tar.gz1923679f01e010d49c13e58b4ca8f2d4996a6b7178968f5f2d906262733480ae7a2d4
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.