Skip to content

Commit 89bb823

Browse files
simple solution to remove duplicates from patches and configure_args
Ensure patches and configure arguments are unique.
1 parent c681ef9 commit 89bb823

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pythonforandroid/recipes/python3/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ def apply_patches(self, arch, build_dir=None):
206206
self.patches.append("patches/py3.7.1_fix_cortex_a8.patch")
207207
elif _p_version.minor >= 8:
208208
self.patches.append("patches/py3.8.1_fix_cortex_a8.patch")
209+
210+
self.patches = list(set(self.patches))
209211
super().apply_patches(arch, build_dir)
210212

211213
def include_root(self, arch_name):
@@ -322,6 +324,8 @@ def add_flags(include_flags, link_dirs, link_libs):
322324
if _p_version.minor >= 13 and self.disable_gil:
323325
self.configure_args.append("--disable-gil")
324326

327+
self.configure_args = list(set(self.configure_args))
328+
325329
return env
326330

327331
def build_arch(self, arch):

0 commit comments

Comments
 (0)