{ "info": { "author": "Luper Rouch", "author_email": "luper.rouch@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Setuptools Plugin", "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Build Tools" ], "description": "# cython-setuptools\n[![Build Status](https://travis-ci.org/flupke/cython-setuptools.svg?branch=master)](https://travis-ci.org/flupke/cython-setuptools)\n\nEasier distribution and development of Cython modules.\n\nFeatures:\n\n* Two distribution models: with C/C++ files included in the package, and\n without\n* Cython modules are defined in `setup.cfg`\n* Install directly from Cython sources, without installing Cython in the target\n environment (Cython is only included in `install_requires`)\n\n## Installation\n\n```shell\n$ pip install cython-setuptools\n```\n\n## Usage\n\nHere is an example Python package using the default distribution model (only\nCython files are included in the source package).\n\nFirst install the `cython-setuptools` vendor module in the package, next to\n`setup.py`.\n\n```shell\n$ cd your-python-project/\n$ cython-setuptools install\n```\n\nThen use `cython-setuptools`' `setup()` in your `setup.py`:\n\n```python\nfrom cysetuptools import setup\n\nsetup()\n```\n\nNote that we keep the default `cythonize=True` argument of `setup()` here,\nmeaning that C files are compiled from Cython files automatically.\n`setup(cythonize=False)` would mean we would need to distribute the C/C++ files\ncompiled from Cython in the source package.\n\nDefine your Cython modules in `setup.cfg`.\n\n```ini\n[metadata]\nname = your-python-project\nversion = 1.0\n\n[options]\npackages = find:\ninstall_requires = cython\n\n[options.extras_require]\ndev = cython\n\n[cython-defaults]\ninclude_dirs = include/\n\n[cython-module: foo.bar]\nsources = foo.pyx\n bar.cpp\ninclude_dirs = eval(__import__('numpy').get_include())\nlanguage = c++\npkg_config_packages = opencv\n```\n\nThen your Cython modules can be compiled and tested in-place with:\n\n```shell\n$ python setup.py build_ext --inplace\n```\n\nThis automatically compile outdated Cython files. If `setup(cythonize=False)`\nis used, you have to specifically tell the setup to recompile outdated Cython\nfiles:\n\n```shell\n$ CYTHONIZE=1 python setup.py build_ext --inplace\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/flupke/cython-setuptools", "keywords": "cython setuptools", "license": "", "maintainer": "", "maintainer_email": "", "name": "cython-setuptools", "package_url": "https://pypi.org/project/cython-setuptools/", "platform": "", "project_url": "https://pypi.org/project/cython-setuptools/", "project_urls": { "Homepage": "https://github.com/flupke/cython-setuptools" }, "release_url": "https://pypi.org/project/cython-setuptools/0.2/", "requires_dist": null, "requires_python": "", "summary": "Cython setuptools integration", "version": "0.2" }, "last_serial": 5420301, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e01bbabb6f41ae65477c3313831f9230", "sha256": "5f59fefeb34bce126dd3787cf59f1cf18b5bd8156de368a3445ec68ee8813789" }, "downloads": -1, "filename": "cython-setuptools-0.1.tar.gz", "has_sig": false, "md5_digest": "e01bbabb6f41ae65477c3313831f9230", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6354, "upload_time": "2019-06-19T12:32:16", "url": "https://files.pythonhosted.org/packages/f3/cc/41ae232cf8678977916d1a6968576efc177fac6c4f628a1028809745e761/cython-setuptools-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "1ca0166e072378b3a0d24fc8ef9534ac", "sha256": "e470508aa230fe6f99e2a3512fe3b95bcca7603ef593edbd9187fd8d03731242" }, "downloads": -1, "filename": "cython-setuptools-0.2.tar.gz", "has_sig": false, "md5_digest": "1ca0166e072378b3a0d24fc8ef9534ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6390, "upload_time": "2019-06-19T13:48:39", "url": "https://files.pythonhosted.org/packages/16/e8/6e1e25fb7b0037f251e62a59dc8d0a25b48e061b4a2f829c94bc4d8363c3/cython-setuptools-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1ca0166e072378b3a0d24fc8ef9534ac", "sha256": "e470508aa230fe6f99e2a3512fe3b95bcca7603ef593edbd9187fd8d03731242" }, "downloads": -1, "filename": "cython-setuptools-0.2.tar.gz", "has_sig": false, "md5_digest": "1ca0166e072378b3a0d24fc8ef9534ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6390, "upload_time": "2019-06-19T13:48:39", "url": "https://files.pythonhosted.org/packages/16/e8/6e1e25fb7b0037f251e62a59dc8d0a25b48e061b4a2f829c94bc4d8363c3/cython-setuptools-0.2.tar.gz" } ] }