From 41bff6e7fb4a86b875930fd97bfefd7781b3115f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 27 Jun 2020 13:26:26 +0300 Subject: [PATCH] build script: add support for bin directory in prefix path --- build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 6fac3275..180d6815 100755 --- a/build.py +++ b/build.py @@ -260,6 +260,7 @@ class Builder(object): self.root_path = os.path.dirname(os.path.abspath(__file__)) + os.sep self.deps_path = self.root_path + 'deps' + os.sep self.prefix_path = self.root_path + 'prefix' + os.sep + self.bin_path = self.prefix_path + 'bin' + os.sep self.include_path = self.prefix_path + 'include' + os.sep self.lib_path = self.prefix_path + 'lib' + os.sep @@ -295,6 +296,7 @@ class Builder(object): self._build_target() def _create_prefix_directory(self): + os.makedirs(self.bin_path, exist_ok=True) os.makedirs(self.include_path, exist_ok=True) os.makedirs(self.lib_path, exist_ok=True) @@ -327,6 +329,7 @@ class Builder(object): elif not os.path.exists(dst_subpath): os.symlink(src.path, dst_subpath) + symlink_deps('bin') symlink_deps('include') symlink_deps('lib') @@ -344,7 +347,9 @@ class Builder(object): return environ = os.environ - environ['PATH'] = environ['PATH'] + os.pathsep + '/Applications/CMake.app/Contents/bin' + environ['PATH'] = environ['PATH'] \ + + os.pathsep + '/Applications/CMake.app/Contents/bin' \ + + os.pathsep + self.bin_path os.makedirs(self.build_path, exist_ok=True)