From b413826299f3b3358f7ead464301415444e6a03d Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Mon, 31 Oct 2016 11:31:56 +0200 Subject: [PATCH] Add injections extension to setup script --- setup.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index f6472771..c91064a2 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import re -from setuptools import setup +from setuptools import setup, Extension # Getting description: @@ -30,12 +30,20 @@ setup(name='dependency-injector', bugtrack_url='https://github.com/ets-labs/python-dependency-injector' + '/issues', download_url='https://pypi.python.org/pypi/dependency_injector', - license='BSD New', + install_requires=requirements, packages=['dependency_injector', 'dependency_injector.providers'], - platforms=['any'], + ext_modules=[ + Extension('dependency_injector.injections', + ['dependency_injector/injections.c'], + extra_compile_args=['-O2']), + ], + package_data={ + 'dependency_injector': ['*.pxd'] + }, zip_safe=True, - install_requires=requirements, + license='BSD New', + platforms=['any'], keywords=[ 'DI', 'Dependency injection',