aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build/build.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-13 03:11:07 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-13 05:47:36 +0300
commit9a1aba21955bb5f4cf3e7720940564cab8fcde9d (patch)
tree6c37450aeed5e92403a7669636fa1594a104b0d2 /build/build.py
parentrefactor build/boost/build_travis.sh (diff)
downloadcmake-common-9a1aba21955bb5f4cf3e7720940564cab8fcde9d.tar.gz
cmake-common-9a1aba21955bb5f4cf3e7720940564cab8fcde9d.zip
build/boost: add generic build.py script
Diffstat (limited to '')
-rwxr-xr-xbuild/build.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/build/build.py b/build/build.py
index 8b398cf..dd88156 100755
--- a/build/build.py
+++ b/build/build.py
@@ -22,16 +22,6 @@ import sys
import tempfile
-@contextmanager
-def _chdir(path):
- cwd = os.getcwd()
- os.chdir(path)
- try:
- yield
- finally:
- os.chdir(cwd)
-
-
def _make_tmp_dir(**kwargs):
path = tempfile.mkdtemp(**kwargs)
logging.info('Created temporary directory: %s', path)
@@ -84,9 +74,6 @@ class BuildDir:
def _make_build_dir():
return _make_tmp_dir(prefix='build_')
- def go(self):
- return _chdir(self.path)
-
def __enter__(self):
return self