Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Cython setuptools integration

Project description

Allows compiling Cython extensions in setuptools by putting setuptools_cython in your setup_requires.


Use setuptools, add setuptools_cython to your setup_requires.

Some verbatim code is required to make Extension behave as expected.

Usage example

#!/usr/bin/env python

from setuptools import setup
from distutils.extension import Extension

# setuptools DWIM monkey-patch madness
import sys
if 'setuptools.extension' in sys.modules:
    m = sys.modules['setuptools.extension']
    m.Extension.__dict__ = m._Extension.__dict__

        name = "example",
        version = "0.1",
        description="setuptools_cython example",
            Extension('example', ['example.pyx']),

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for setuptools_cython, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size setuptools_cython-0.2.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page