{ "info": { "author": "Antoine Rousseaux", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Other Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: System :: Installation/Setup" ], "description": "\n\n.. image:: https://raw.githubusercontent.com/anxuae/setuptools-cythonize/master/docs/cythonize.png\n :align: center\n :alt: setuptools-cythonize\n\n|PythonVersions| |PypiPackage| |Downloads|\n\nThe ``setuptools-cythonize`` provides ``distutils`` classes to compile **Python** source code into\n**C** code using ``Cython``. The generated code is packaged into a platform dependent archive.\n\n.. image:: https://raw.githubusercontent.com/anxuae/setuptools-cythonize/master/docs/cythonization.png\n :align: center\n :alt: cythonization\n\nInstall\n-------\n\n::\n\n $> pip install setuptools-cythonize\n\n\nSetup configuration\n-------------------\n\nAdd the ``cmdclass`` keyword to the setup:\n\n.. code-block:: python\n\n from setuptools import setup\n from setuptools_cythonize import get_cmdclass\n\n setup(\n cmdclass=get_cmdclass(),\n name=\"my_package\",\n version=\"2.0.5\",\n description=\"My custom library\",\n ...\n )\n\n.. note:: the function ``get_cmdclass()`` force **wheel** as default format\n (recommended format for binary distribution). This behavior can be\n disabled by passing the parameter ``wheel_default=False``.\n\nSome packages can be excluded from the *cythonization* by setting the ``exclude_cythonize``\noption. The module names matching is done using the function\n`fnmatch.fnmatchcase `_ .\n\n.. code-block:: python\n\n from setuptools import setup\n from setuptools_cythonize import get_cmdclass\n\n setup(\n cmdclass=get_cmdclass(),\n name=\"my_package\",\n ...\n options={\n 'build_py':\n {'exclude_cythonize': ['my_package.subpack*']}\n },\n ...\n )\n\n.. note:: some Python modules starting with ``__`` are excluded from the cythonization.\n This includes:\n\n - the ``__init__.py`` files which are mandatory to keep the Python\n packages integrity\n - the ``__main__.py`` file in order to exectute the package using\n the command ``python -m ...``\n\nThe `Cython compiler options `_\ncan also be customized before running the ``setup``:\n\n.. code-block:: python\n\n from setuptools import setup\n\n from Cython.Compiler import Options\n\n Options.docstrings = False\n\n setup(\n ...\n )\n\n\nPackaging\n---------\n\nGenerate your package by executing the ``setup.py`` file, all Python modules (except\nthe ones defined in ``exclude_cythonize``) will be compiled and packaged::\n\n $> python setup.py bdist --cythonize\n\nA source package can still be generated by removing the ``--cythonize`` option::\n\n $> python setup.py bdist\n\n\n.. |PythonVersions| image:: https://img.shields.io/badge/python-2.7+ / 3.5+-red.svg\n :target: https://www.python.org/downloads\n :alt: Python 2.7+/3.5+\n\n.. |PypiPackage| image:: https://badge.fury.io/py/setuptools-cythonize.svg\n :target: https://pypi.org/project/setuptools-cythonize\n :alt: PyPi package\n\n.. |Downloads| image:: https://img.shields.io/pypi/dm/setuptools-cythonize?color=purple\n :target: https://pypi.org/project/setuptools-cythonize\n :alt: PyPi downloads\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/anxuae/setuptools-cythonize/archive/1.0.6.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/anxuae/setuptools-cythonize", "keywords": "setup,install,compilation", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "setuptools-cythonize", "package_url": "https://pypi.org/project/setuptools-cythonize/", "platform": "unix", "project_url": "https://pypi.org/project/setuptools-cythonize/", "project_urls": { "Download": "https://github.com/anxuae/setuptools-cythonize/archive/1.0.6.tar.gz", "Homepage": "https://github.com/anxuae/setuptools-cythonize" }, "release_url": "https://pypi.org/project/setuptools-cythonize/1.0.6/", "requires_dist": [ "setuptools (>=36.2.0)", "wheel (>=0.29.0)", "cython (>=0.25.2)" ], "requires_python": "", "summary": "Distribute python modules/packages as binary files (compilation based on Cython)", "version": "1.0.6", "yanked": false, "yanked_reason": null }, "last_serial": 8175620, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "94e4689cf12d48d768fa5ac60f2337b9", "sha256": "7c29aaab015e8c9ad93f21b630a85e6e7cb2d63934a14fb281c41e49a6c0e104" }, "downloads": -1, "filename": "setuptools_cythonize-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "94e4689cf12d48d768fa5ac60f2337b9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5698, "upload_time": "2019-02-21T20:35:17", "upload_time_iso_8601": "2019-02-21T20:35:17.343040Z", "url": "https://files.pythonhosted.org/packages/b5/db/265f6f2aec583353ed208dad1dfb326cd5f8b9f557be11b086f8bd4fc4d5/setuptools_cythonize-1.0.0-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "6a811c306ba05d38848b0dc919987f62", "sha256": "de47794cf4d08646b67d32fe6f38afcae228aa8aadfc3b99d9607480788e2dd8" }, "downloads": -1, "filename": "setuptools_cythonize-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6a811c306ba05d38848b0dc919987f62", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5977, "upload_time": "2019-02-23T15:38:05", "upload_time_iso_8601": "2019-02-23T15:38:05.952495Z", "url": "https://files.pythonhosted.org/packages/95/97/a3a262829d96a5dc80d5f8985fa143820462d577a7d6b136e6decd43d182/setuptools_cythonize-1.0.2-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "200f3719c1c85cbeec425702dd79dd1b", "sha256": "10fd3f27ca6d7b50f267dfe98b72d791f6b4bcea922cb391dcb3d7f6938194c7" }, "downloads": -1, "filename": "setuptools_cythonize-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "200f3719c1c85cbeec425702dd79dd1b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6212, "upload_time": "2019-04-13T16:36:17", "upload_time_iso_8601": "2019-04-13T16:36:17.219111Z", "url": "https://files.pythonhosted.org/packages/3d/21/42b88e6ad55fa83005e1928fe90f169ddf02469c8c82ff1686d7a6bea89d/setuptools_cythonize-1.0.3-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "8cf80ca2188d24c7b4467dec18538ce3", "sha256": "990544d7ac3b3b24b54e45ee0470a3c4396f940a128746fa2b85c11ab1c582e9" }, "downloads": -1, "filename": "setuptools_cythonize-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8cf80ca2188d24c7b4467dec18538ce3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5166, "upload_time": "2019-10-30T22:48:39", "upload_time_iso_8601": "2019-10-30T22:48:39.748182Z", "url": "https://files.pythonhosted.org/packages/e7/64/e70a90838dc921769a141b7dff52de040d20d10638732f0ce6ae3c534cfe/setuptools_cythonize-1.0.4-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "a4f518e12c308c82b33e29803199b511", "sha256": "b68a5136704429555f1af57df21c501da20293625b0a6b907e53c75525c59901" }, "downloads": -1, "filename": "setuptools_cythonize-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a4f518e12c308c82b33e29803199b511", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5488, "upload_time": "2020-05-28T11:49:23", "upload_time_iso_8601": "2020-05-28T11:49:23.157487Z", "url": "https://files.pythonhosted.org/packages/7d/cd/f6bd411ef7e8888e53ef3948be22091ef51c86134c356685a3265d84e846/setuptools_cythonize-1.0.5-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "b578adcfcbb172a47e1e954b67980607", "sha256": "b3691c8ccdb971ed65e131adf267edc01011554097e7e81910c11ea08a24695e" }, "downloads": -1, "filename": "setuptools-cythonize-1.0.5.tar.gz", "has_sig": false, "md5_digest": "b578adcfcbb172a47e1e954b67980607", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4702, "upload_time": "2020-05-28T11:55:15", "upload_time_iso_8601": "2020-05-28T11:55:15.778616Z", "url": "https://files.pythonhosted.org/packages/4a/40/cda43158902ddbd3cfee1ccbe4019aaf6b4237c01724c81b7893cf6c9025/setuptools-cythonize-1.0.5.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "b26a8555e8c431d4d3aba142d31d827d", "sha256": "12b18d81ed158315dec98aceb4315afeb64df9d1db332782c87124732a4b11d1" }, "downloads": -1, "filename": "setuptools_cythonize-1.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b26a8555e8c431d4d3aba142d31d827d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5376, "upload_time": "2020-09-13T14:48:07", "upload_time_iso_8601": "2020-09-13T14:48:07.748873Z", "url": "https://files.pythonhosted.org/packages/42/2d/9df42c89940ab501787447b103437031d38284a7ca97a28253732a136aca/setuptools_cythonize-1.0.6-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "e5390357a935cf7a3c892ba5bfe482e1", "sha256": "5ed4893538cc79db1a24df3d66c4b7c384d377afec6549c1eb1e4d0f89ade0e1" }, "downloads": -1, "filename": "setuptools-cythonize-1.0.6.tar.gz", "has_sig": false, "md5_digest": "e5390357a935cf7a3c892ba5bfe482e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5563, "upload_time": "2020-09-13T14:48:08", "upload_time_iso_8601": "2020-09-13T14:48:08.795782Z", "url": "https://files.pythonhosted.org/packages/14/b4/9327dd3fd6ba6910d41081f6bc1f9127ddc35a0caefd79225c2f96973b15/setuptools-cythonize-1.0.6.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b26a8555e8c431d4d3aba142d31d827d", "sha256": "12b18d81ed158315dec98aceb4315afeb64df9d1db332782c87124732a4b11d1" }, "downloads": -1, "filename": "setuptools_cythonize-1.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b26a8555e8c431d4d3aba142d31d827d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5376, "upload_time": "2020-09-13T14:48:07", "upload_time_iso_8601": "2020-09-13T14:48:07.748873Z", "url": "https://files.pythonhosted.org/packages/42/2d/9df42c89940ab501787447b103437031d38284a7ca97a28253732a136aca/setuptools_cythonize-1.0.6-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "e5390357a935cf7a3c892ba5bfe482e1", "sha256": "5ed4893538cc79db1a24df3d66c4b7c384d377afec6549c1eb1e4d0f89ade0e1" }, "downloads": -1, "filename": "setuptools-cythonize-1.0.6.tar.gz", "has_sig": false, "md5_digest": "e5390357a935cf7a3c892ba5bfe482e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5563, "upload_time": "2020-09-13T14:48:08", "upload_time_iso_8601": "2020-09-13T14:48:08.795782Z", "url": "https://files.pythonhosted.org/packages/14/b4/9327dd3fd6ba6910d41081f6bc1f9127ddc35a0caefd79225c2f96973b15/setuptools-cythonize-1.0.6.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }