Skip to content

Commit 71ebabb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7d0fe4a commit 71ebabb

File tree

1 file changed

+34
-33
lines changed

1 file changed

+34
-33
lines changed

build_support/lib_xmlsec_dependency_builder.py

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -360,40 +360,41 @@ def _build_libxslt(self, env, prefix_arg, host_arg):
360360
subprocess.check_call(['make', f'-j{multiprocessing.cpu_count() + 1}'], cwd=str(libxslt_dir), env=env)
361361
subprocess.check_call(['make', f'-j{multiprocessing.cpu_count() + 1}', 'install'], cwd=str(libxslt_dir), env=env)
362362

363+
363364
def _build_xmlsec1(self, env, prefix_arg, host_arg):
364-
self.info('Building xmlsec1')
365-
xmlsec1_dir = next(self.build_libs_dir.glob('xmlsec1-*'))
366-
subprocess.check_call(
367-
[
368-
'./configure',
369-
prefix_arg,
370-
'--disable-shared',
371-
'--disable-gost',
372-
'--enable-md5',
373-
'--enable-ripemd160',
374-
'--disable-crypto-dl',
375-
'--enable-static=yes',
376-
'--enable-shared=no',
377-
'--enable-static-linking=yes',
378-
'--with-default-crypto=openssl',
379-
f'--with-openssl={self.prefix_dir}',
380-
f'--with-libxml={self.prefix_dir}',
381-
f'--with-libxslt={self.prefix_dir}',
382-
*host_arg,
383-
],
384-
cwd=str(xmlsec1_dir),
385-
env=env,
386-
)
387-
include_flags = [
388-
f'-I{self.prefix_dir / "include"}',
389-
f'-I{self.prefix_dir / "include" / "libxml"}',
390-
]
391-
subprocess.check_call(
392-
['make', f'-j{multiprocessing.cpu_count() + 1}', *include_flags],
393-
cwd=str(xmlsec1_dir),
394-
env=env,
395-
)
396-
subprocess.check_call(['make', f'-j{multiprocessing.cpu_count() + 1}', 'install'], cwd=str(xmlsec1_dir), env=env)
365+
self.info('Building xmlsec1')
366+
xmlsec1_dir = next(self.build_libs_dir.glob('xmlsec1-*'))
367+
subprocess.check_call(
368+
[
369+
'./configure',
370+
prefix_arg,
371+
'--disable-shared',
372+
'--disable-gost',
373+
'--enable-md5',
374+
'--enable-ripemd160',
375+
'--disable-crypto-dl',
376+
'--enable-static=yes',
377+
'--enable-shared=no',
378+
'--enable-static-linking=yes',
379+
'--with-default-crypto=openssl',
380+
f'--with-openssl={self.prefix_dir}',
381+
f'--with-libxml={self.prefix_dir}',
382+
f'--with-libxslt={self.prefix_dir}',
383+
*host_arg,
384+
],
385+
cwd=str(xmlsec1_dir),
386+
env=env,
387+
)
388+
include_flags = [
389+
f'-I{self.prefix_dir / "include"}',
390+
f'-I{self.prefix_dir / "include" / "libxml"}',
391+
]
392+
subprocess.check_call(
393+
['make', f'-j{multiprocessing.cpu_count() + 1}', *include_flags],
394+
cwd=str(xmlsec1_dir),
395+
env=env,
396+
)
397+
subprocess.check_call(['make', f'-j{multiprocessing.cpu_count() + 1}', 'install'], cwd=str(xmlsec1_dir), env=env)
397398

398399

399400
__all__ = ('CrossCompileInfo', 'LibXmlsecDependencyBuilder')

0 commit comments

Comments
 (0)