mirror of
https://github.com/openwrt/packages.git
synced 2025-12-25 18:24:51 +04:00
This package fails to build with newer setuptools, because setuptools removed the (deprecated) Features feature in v46.0.0[1]. This adapts a commit[2] to remove the use of this feature. (Changes to code formatting prevent the original commit/patch to be used.) [1]:aff64ae89e/CHANGES.rst (v4600)[2]:3aac426e35Signed-off-by: Jeffery To <jeffery.to@gmail.com>
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
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',
|