From 9a1aba21955bb5f4cf3e7720940564cab8fcde9d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 13 Dec 2019 03:11:07 +0300 Subject: build/boost: add generic build.py script --- build/build.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'build/build.py') 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 -- cgit v1.2.3