summaryrefslogtreecommitdiff
path: root/lang/python/python3-maxminddb/patches/001-Stop-using-deprecated-Feature-from-setuptools.patch
blob: 96e17aa6c912a1f397f674bd0f9536a48fea5010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Adapted from 3aac426[1] to account for a difference in formatting.

[1]: https://github.com/maxmind/MaxMind-DB-Reader-python/commit/3aac426e354f91814f6fd0829baee137b0bb093f

--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ from distutils.command.build_ext import
 from distutils.errors import (CCompilerError, DistutilsExecError,
                               DistutilsPlatformError)
 
-from setuptools import setup, Extension, Feature
+from setuptools import setup, Extension
 
 cmdclass = {}
 PYPY = hasattr(sys, 'pypy_version_info')
@@ -107,16 +107,7 @@ def find_packages(location):
 def run_setup(with_cext):
     kwargs = {}
     if with_cext:
-        if Feature:
-            kwargs['features'] = {
-                'extension':
-                Feature(
-                    "optional C implementation",
-                    standard=True,
-                    ext_modules=ext_module)
-            }
-        else:
-            kwargs['ext_modules'] = ext_module
+        kwargs['ext_modules'] = ext_module
 
     setup(
         name='maxminddb',