aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost/build.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-30 01:32:12 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-30 01:32:12 +0300
commit95e250be67a167f97968639c4380da2f82dac3b0 (patch)
tree59377e5bfff099f3437745d8ed253c5d26acab8a /project/boost/build.py
parentproject.boost: support --mingw for Travis/AppVeyor (diff)
downloadcmake-common-95e250be67a167f97968639c4380da2f82dac3b0.tar.gz
cmake-common-95e250be67a167f97968639c4380da2f82dac3b0.zip
project: code style
Diffstat (limited to 'project/boost/build.py')
-rw-r--r--project/boost/build.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/project/boost/build.py b/project/boost/build.py
index 1e5018e..78e51bf 100644
--- a/project/boost/build.py
+++ b/project/boost/build.py
@@ -36,7 +36,7 @@ from project.configuration import Configuration
from project.linkage import Linkage
from project.platform import Platform
from project.os import on_linux_like
-import project.utils
+from project.utils import normalize_path, setup_logging
DEFAULT_PLATFORMS = (Platform.native(),)
@@ -51,9 +51,9 @@ class BuildParameters:
configurations=None, link=None, runtime_link=None,
mingw=False, b2_args=None):
- boost_dir = project.utils.normalize_path(boost_dir)
+ boost_dir = normalize_path(boost_dir)
if build_dir is not None:
- build_dir = project.utils.normalize_path(build_dir)
+ build_dir = normalize_path(build_dir)
platforms = platforms or DEFAULT_PLATFORMS
configurations = configurations or DEFAULT_CONFIGURATIONS
link = link or DEFAULT_LINK
@@ -196,10 +196,10 @@ def _parse_args(argv=None):
help='build using MinGW-w64')
parser.add_argument('--build', metavar='DIR', dest='build_dir',
- type=project.utils.normalize_path,
+ type=normalize_path,
help='Boost build directory (temporary directory unless specified)')
parser.add_argument('boost_dir', metavar='DIR',
- type=project.utils.normalize_path,
+ type=normalize_path,
help='root Boost directory')
parser.add_argument('b2_args', metavar='B2_ARG',
@@ -210,7 +210,7 @@ def _parse_args(argv=None):
def _main(argv=None):
- with project.utils.setup_logging():
+ with setup_logging():
build(BuildParameters.from_args(_parse_args(argv)))