modernize

This commit is contained in:
Pavol Rusnak 2024-10-07 11:15:03 +02:00
parent 5e15c43ab7
commit 2a13ed0921
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
103 changed files with 822 additions and 906 deletions

View file

@ -37,7 +37,7 @@ class NumpyRecipe(CompiledComponentsPythonRecipe):
return env
def _build_compiled_components(self, arch):
info('Building compiled components in {}'.format(self.name))
info(f'Building compiled components in {self.name}')
env = self.get_recipe_env(arch)
with current_directory(self.get_build_dir(arch.arch)):
@ -49,7 +49,7 @@ class NumpyRecipe(CompiledComponentsPythonRecipe):
env['STRIP'], '{}', ';', _env=env)
def _rebuild_compiled_components(self, arch, env):
info('Rebuilding compiled components in {}'.format(self.name))
info(f'Rebuilding compiled components in {self.name}')
hostpython = sh.Command(self.real_hostpython_location)
shprint(hostpython, 'setup.py', 'clean', '--all', '--force', _env=env)