Skip to content

Commit 3aac426

Browse files
committed
Stop using deprecated Feature from setuptools
pypa/setuptools#65
1 parent 6b6cae4 commit 3aac426

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

setup.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from distutils.errors import (CCompilerError, DistutilsExecError,
1010
DistutilsPlatformError)
1111

12-
from setuptools import setup, Extension, Feature
12+
from setuptools import setup, Extension
1313

1414
cmdclass = {}
1515
PYPY = hasattr(sys, 'pypy_version_info')
@@ -107,15 +107,7 @@ def find_packages(location):
107107
def run_setup(with_cext):
108108
kwargs = {}
109109
if with_cext:
110-
if Feature:
111-
kwargs['features'] = {
112-
'extension':
113-
Feature("optional C implementation",
114-
standard=True,
115-
ext_modules=ext_module)
116-
}
117-
else:
118-
kwargs['ext_modules'] = ext_module
110+
kwargs['ext_modules'] = ext_module
119111

120112
setup(name='maxminddb',
121113
version=VERSION,

0 commit comments

Comments
 (0)