BSD Ports

devel/py-cxx 7.1.8_1 DragonFly

Make it easier to extend Python with C++

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
devel, python
Package size
54.8 KiB, 445.7 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.

In the other systems

The newest version among them is 7.2.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-cxx7.1.8_1 behind since 2026-08-22none known-[email protected]-
FreeBSDdevel/py-cxx7.2.0 newestnone known-[email protected]2026-08-22
HardenedBSDdevel/py-cxx7.2.0 newestno data-[email protected]-
GhostBSDdevel/py-cxx7.2.0 newestno data-[email protected]-

Install

Binary package:

pkg install py311-cxx

From DPorts:

cd /usr/dports/devel/py-cxx && 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 1

No port depends on this one.