Add injections extension to setup script

This commit is contained in:
Roman Mogilatov 2016-10-31 11:31:56 +02:00
parent 7559959f35
commit b413826299

View File

@ -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',