FreeBSD Ports

devel/py-cxx 7.2.0

Make it easier to extend Python with C++

Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
672466866d
License
BSD3CLAUSE
Categories
devel, python
Package size
58.5 KiB, 447.2 KiB installed

Description

PyCXX is a set of C++ facilities to make it easier to write Python extensions. The chief way in which PyCXX makes it easier to write Python extensions is that it greatly increases the probability that your program will not make a reference-counting error and will not have to continually check error returns from the Python C API.

PyCXX integrates Python with C++ in these ways:

  • C++ exception handling is relied on to detect errors and clean up. In a complicated function this is often a tremendous problem when writing in C. With PyCXX, we let the compiler keep track of what objects need to be dereferenced when an error occurs.
  • The Standard Template Library (STL) and its many algorithms plug and play with Python containers such as lists and tuples.
  • The optional CXX_Extensions facility allows you to replace the clumsy C tables with objects and method calls that define your modules and extension objects.

Install

As a binary package — by origin, or by package name:

pkg install devel/py-cxx
pkg install py312-cxx

From the ports tree:

cd /usr/ports/devel/py-cxx/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-cxx>0:devel/py-cxx

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:latest7.2.07.2.07.1.77.1.8_17.2.0
FreeBSD:14:quarterly7.2.07.2.0n/a7.1.8_17.2.0
FreeBSD:15:latest7.2.07.2.0n/a7.1.8_17.1.8_1
FreeBSD:15:quarterly7.2.07.2.0n/an/an/a
FreeBSD:16:latest7.2.07.2.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

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

All build dependencies 11
All run dependencies 7

No port depends on this one.

Configuration

Options name: devel_cxx

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
pycxx-7.2.0.tar.gz1554854140ca17c39e7f3d8c9a426d12126a037a27dc148e50d3f98f0d334513fcbbb2
Master sites 1
  • SF/cxx/CXX/PyCXX%20V7.2.0

Commit history 1

DateCommitCreditsLog message
672466866d Li-Wen Hsu devel/py-cxx: Update to 7.2.0