diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-13 19:14:23 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-13 19:14:23 +0300 |
commit | 0fa3ad2c007d1ea90694f73754ccac8c42dcdf93 (patch) | |
tree | 2133c45f56693878fc7b4c00a9005469eb78bd77 /project/ci/boost.py | |
parent | setup.cfg: fix package name (diff) | |
download | cmake-common-0fa3ad2c007d1ea90694f73754ccac8c42dcdf93.tar.gz cmake-common-0fa3ad2c007d1ea90694f73754ccac8c42dcdf93.zip |
remove excessive logging & obsolete project.ci.* packages
Logging command line arguments before parsing them is a bit excessive.
Diffstat (limited to 'project/ci/boost.py')
-rw-r--r-- | project/ci/boost.py | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/project/ci/boost.py b/project/ci/boost.py index 588df92..1b47710 100644 --- a/project/ci/boost.py +++ b/project/ci/boost.py @@ -17,7 +17,6 @@ from project.utils import setup_logging def _parse_args(argv=None): if argv is None: argv = sys.argv[1:] - logging.info('Command line arguments: %s', argv) parser = argparse.ArgumentParser( description=Dirs.get_boost_help(), @@ -39,28 +38,28 @@ def _parse_args(argv=None): def build_ci(dirs, argv=None): args = _parse_args(argv) - if dirs is None: - dirs = Dirs.detect() + with setup_logging(): + if dirs is None: + dirs = Dirs.detect() - version = dirs.get_boost_version() - build_dir = dirs.get_build_dir() - boost_dir = dirs.get_boost_dir() - params = DownloadParameters(version, cache_dir=build_dir, dest_path=boost_dir) - download(params) + version = dirs.get_boost_version() + build_dir = dirs.get_build_dir() + boost_dir = dirs.get_boost_dir() + params = DownloadParameters(version, cache_dir=build_dir, dest_path=boost_dir) + download(params) - params = BuildParameters(boost_dir, - platforms=(dirs.get_platform(),), - configurations=(dirs.get_configuration(),), - link=args.link, - runtime_link=args.runtime_link, - toolset=dirs.get_toolset(), - b2_args=args.b2_args) - build(params) + params = BuildParameters(boost_dir, + platforms=(dirs.get_platform(),), + configurations=(dirs.get_configuration(),), + link=args.link, + runtime_link=args.runtime_link, + toolset=dirs.get_toolset(), + b2_args=args.b2_args) + build(params) def main(argv=None): - with setup_logging(): - build_ci(None, argv) + build_ci(None, argv) if __name__ == '__main__': |