@@ -52,7 +52,7 @@ def __new__(cls, name, bases, dct):
5252 if 'version' in dct :
5353 dct ['_version' ] = dct .pop ('version' )
5454
55- return super (RecipeMeta , cls ).__new__ (cls , name , bases , dct )
55+ return super ().__new__ (cls , name , bases , dct )
5656
5757
5858class Recipe (with_metaclass (RecipeMeta )):
@@ -769,8 +769,7 @@ def get_jni_dir(self):
769769 return join (self .ctx .bootstrap .build_dir , 'jni' )
770770
771771 def get_recipe_env (self , arch = None , with_flags_in_cc = True , with_python = False ):
772- env = super (BootstrapNDKRecipe , self ).get_recipe_env (
773- arch , with_flags_in_cc )
772+ env = super ().get_recipe_env (arch , with_flags_in_cc )
774773 if not with_python :
775774 return env
776775
@@ -804,7 +803,7 @@ def get_jni_dir(self, arch):
804803 return join (self .get_build_dir (arch .arch ), 'jni' )
805804
806805 def build_arch (self , arch , * extra_args ):
807- super (NDKRecipe , self ).build_arch (arch )
806+ super ().build_arch (arch )
808807
809808 env = self .get_recipe_env (arch )
810809 with current_directory (self .get_build_dir (arch .arch )):
@@ -856,7 +855,8 @@ class PythonRecipe(Recipe):
856855 '''
857856
858857 def __init__ (self , * args , ** kwargs ):
859- super (PythonRecipe , self ).__init__ (* args , ** kwargs )
858+ super ().__init__ (* args , ** kwargs )
859+
860860 if 'python3' not in self .depends :
861861 # We ensure here that the recipe depends on python even it overrode
862862 # `depends`. We only do this if it doesn't already depend on any
@@ -868,7 +868,7 @@ def __init__(self, *args, **kwargs):
868868 self .depends = depends
869869
870870 def clean_build (self , arch = None ):
871- super (PythonRecipe , self ).clean_build (arch = arch )
871+ super ().clean_build (arch = arch )
872872 name = self .folder_name
873873 python_install_dirs = glob .glob (join (self .ctx .python_installs_dir , '*' ))
874874 for python_install in python_install_dirs :
@@ -905,7 +905,7 @@ def folder_name(self):
905905 return name
906906
907907 def get_recipe_env (self , arch = None , with_flags_in_cc = True ):
908- env = super (PythonRecipe , self ).get_recipe_env (arch , with_flags_in_cc )
908+ env = super ().get_recipe_env (arch , with_flags_in_cc )
909909
910910 env ['PYTHONNOUSERSITE' ] = '1'
911911
@@ -950,7 +950,7 @@ def should_build(self, arch):
950950 def build_arch (self , arch ):
951951 '''Install the Python module by calling setup.py install with
952952 the target Python dir.'''
953- super (PythonRecipe , self ).build_arch (arch )
953+ super ().build_arch (arch )
954954 self .install_python_package (arch )
955955
956956 def install_python_package (self , arch , name = None , env = None , is_dir = True ):
@@ -1020,7 +1020,7 @@ def build_compiled_components(self, arch):
10201020 def install_hostpython_package (self , arch ):
10211021 env = self .get_hostrecipe_env (arch )
10221022 self .rebuild_compiled_components (arch , env )
1023- super (CompiledComponentsPythonRecipe , self ).install_hostpython_package (arch )
1023+ super ().install_hostpython_package (arch )
10241024
10251025 def rebuild_compiled_components (self , arch , env ):
10261026 info ('Rebuilding compiled components in {}' .format (self .name ))
@@ -1122,7 +1122,7 @@ def cythonize_build(self, env, build_dir="."):
11221122 self .cythonize_file (env , build_dir , join (root , filename ))
11231123
11241124 def get_recipe_env (self , arch , with_flags_in_cc = True ):
1125- env = super (CythonRecipe , self ).get_recipe_env (arch , with_flags_in_cc )
1125+ env = super ().get_recipe_env (arch , with_flags_in_cc )
11261126 env ['LDFLAGS' ] = env ['LDFLAGS' ] + ' -L{} ' .format (
11271127 self .ctx .get_libs_dir (arch .arch ) +
11281128 ' -L{} ' .format (self .ctx .libs_dir ) +
@@ -1152,10 +1152,10 @@ class TargetPythonRecipe(Recipe):
11521152
11531153 def __init__ (self , * args , ** kwargs ):
11541154 self ._ctx = None
1155- super (TargetPythonRecipe , self ).__init__ (* args , ** kwargs )
1155+ super ().__init__ (* args , ** kwargs )
11561156
11571157 def prebuild_arch (self , arch ):
1158- super (TargetPythonRecipe , self ).prebuild_arch (arch )
1158+ super ().prebuild_arch (arch )
11591159 self .ctx .python_recipe = self
11601160
11611161 def include_root (self , arch ):
0 commit comments