devel/py3c 1.1p1 OpenBSD
python 2/3 compatibility layer for C extensions
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- Stefan Sperling <[email protected]>
- Categories
- devel, lang/python
Description
py3c helps you port C extensions to Python 3.
It provides a detailed guide, and a set of macros to make porting easy and reduce boilerplate.
Design principles
- Reduce chances of accidental subtle errors
- Minimize boilerplate
- Prefer the Python 3 way of doing things
- Minimize semantic changes under Python 2
Versions Projects using py3c will be compatible with CPython 2.6, 2.7, and 3.3+.
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/py3c | 1.1p1 |
| FreeBSD | devel/py3c | 1.4 |
| DragonFly | devel/py3c | 1.3 |
| MidnightBSD | devel/py3c | 1.4 |
| HardenedBSD | devel/py3c | 1.4 |
| GhostBSD | devel/py3c | 1.4 |
Install
Binary package:
pkg_add py3c
From the ports tree:
cd /usr/ports/devel/py3c && make install