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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 7.2.0 | 7.2.0 | 7.1.7 | 7.1.8_1 | 7.2.0 |
| FreeBSD:14:quarterly | 7.2.0 | 7.2.0 | n/a | 7.1.8_1 | 7.2.0 |
| FreeBSD:15:latest | 7.2.0 | 7.2.0 | n/a | 7.1.8_1 | 7.1.8_1 |
| FreeBSD:15:quarterly | 7.2.0 | 7.2.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 7.2.0 | 7.2.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| pycxx-7.2.0.tar.gz | 155485 | 4140ca17c39e7f3d8c9a426d12126a037a27dc148e50d3f98f0d334513fcbbb2 |
Master sites 1
- SF/cxx/CXX/PyCXX%20V7.2.0