Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r1472:5298c79cdfb5 Date: 2014-03-06 16:07 +0100 http://bitbucket.org/cffi/cffi/changeset/5298c79cdfb5/
Log: Patch by Alex_Gaynor: remove usage of "Feature", which is deprecated. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -96,7 +96,19 @@ if __name__ == '__main__': - from setuptools import setup, Feature, Extension + from setuptools import setup, Extension + ext_modules = [] + if '__pypy__' not in sys.modules: + ext_modules.append(Extension( + name='_cffi_backend', + include_dirs=include_dirs, + sources=sources, + libraries=libraries, + define_macros=define_macros, + library_dirs=library_dirs, + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, + )) setup( name='cffi', description='Foreign Function Interface for Python calling C code.', @@ -122,23 +134,7 @@ license='MIT', - features={ - 'cextension': Feature( - "fast c backend for cpython", - standard='__pypy__' not in sys.modules, - ext_modules=[ - Extension(name='_cffi_backend', - include_dirs=include_dirs, - sources=sources, - libraries=libraries, - define_macros=define_macros, - library_dirs=library_dirs, - extra_compile_args=extra_compile_args, - extra_link_args=extra_link_args, - ), - ], - ), - }, + ext_modules=ext_modules, install_requires=[ 'pycparser', _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit