BSD Ports

Deprecated: Legacy version. Does not work with newer Python versions. Use lang/cython instead

Expires: 2026-06-30

lang/cython0 0.29.37_1 MidnightBSD

Compiler for Writing C Extensions for the Python Language

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
0b784101c0
License
Apache-2.0
Categories
lang, python

Description

Cython is a Python compiler that makes writing C extensions for Python as easy as Python itself. Cython is based on Pyrex, but supports more cutting edge functionality and optimizations.

Cython translates Python code to C/C++ code, but additionally supports calling C functions and declaring C types on variables and class attributes. This allows the compiler to generate very efficient C code from Cython code.

This makes Cython the ideal language for wrapping external C libraries, and for fast C modules that speed up the execution of Python code.

In the other systems

SystemPortVersion
MidnightBSDlang/cython00.29.37_1
FreeBSDlang/cython00.29.37
HardenedBSDlang/cython00.29.37
GhostBSDlang/cython00.29.37

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}cython0

From mports:

cd /usr/mports/lang/cython0 && make install clean

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

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cython0>0:lang/cython0

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
compiler:c11 python:3.7-3.12
Service scripts
none
Conflicts with
py*-cython py*-cython3

Files

distinfo 1
FileSizeSHA256
Cython-0.29.37.tar.gz2.099621e+06f813d4a6dd94adee5d4ff266191d1d95bf6d4164a4facc535422c021b2504cfb
Master sites 2
  • PYPI
  • https://github.com/cython/cython/releases/download/0.29.37/

Commit history 1

DateCommitCreditsLog message
0b784101c0 Lucas Holt lang/cython0: drop the py27 flavor
Cython 0.29.37 fails to cythonize its own sources under python 2.7: Cython.Compiler.Errors.CompileError: .../Cython/Compiler/FlowControl.py FreeBSD no longer has python 2.7 at all, so its python:2.7-3.12 range never generates a py27 flavor there; mports still ships lang/python27, so it does. Nothing in the tree depends on lang/cython0 and the port is already marked DEPRECATED with an expiration date that has passed, so narrow the range rather than chase the 2.7 build. AI-Assisted-by: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Holt <[email protected]>