No project description provided
Project description
The setuptools-cythonize project attempts to provide distutils commands to compile Python code into C code using Cython. The generated code is packaged into a platform dependent archive.
Install
$> sudo pip install setuptools-cythonize
Setup configuration
Add the cmdclass keyword to the setup:
from setuptools_cythonize import get_cmdclass
setup(
cmdclass=get_cmdclass(),
name="my_package",
version="2.0.5",
description="My custom library",
...
)
Some packages can be excluded from the cythonization by setting the exclude_cythonize option. The module matching is done using the function fnmatch.fnmatchcase .
setup(
cmdclass=get_cmdclass(),
name="my_package",
...
options={
'build_py':
{'exclude_cythonize': ['my_package.subpack*']}
},
...
)
Packaging
Call the setup.py file to generate the package, all Python modules (except the ones defined in exclude_cythonize) will be compiled and packaged:
$> python setup.py bdist --cythonize
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for setuptools_cythonize-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c29aaab015e8c9ad93f21b630a85e6e7cb2d63934a14fb281c41e49a6c0e104 |
|
MD5 | 94e4689cf12d48d768fa5ac60f2337b9 |
|
BLAKE2b-256 | b5db265f6f2aec583353ed208dad1dfb326cd5f8b9f557be11b086f8bd4fc4d5 |