Skip to main content

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

Usage

Use setuptools, add setuptools_cython to your setup_requires.

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

Usage example

setup.py:

#!/usr/bin/env python

from setuptools import setup
from distutils.extension import Extension

# setuptools DWIM monkey-patch madness
# http://mail.python.org/pipermail/distutils-sig/2007-September/thread.html#8204
import sys
if 'setuptools.extension' in sys.modules:
    m = sys.modules['setuptools.extension']
    m.Extension.__dict__ = m._Extension.__dict__

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

Metadata

Release files for setuptools_cython 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for setuptools_cython 0.2.1
File Size Uploaded Provenance
setuptools_cython-0.2.1.tar.gz 2.2 kB Without provenance Details

Release files / setuptools_cython-0.2.1.tar.gz

Download URL setuptools_cython-0.2.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
28d84f954566fa2ed33df8b7bbc3b81efdb72c3aa9556345c54b164d641b6a4f
BLAKE2b-256 checksum
How to use checksums
34ded21aeeaccc38f3753d06a30e2eabcf56d39eb345cdc6a8e4610d69fef13f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for setuptools_cython 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page