From 2b693ec39b52668cb1b1af4f306c9dfdf3b4c545 Mon Sep 17 00:00:00 2001 From: Kazunari Sekigawa Date: Fri, 6 May 2022 05:01:40 +0900 Subject: [PATCH] Updated the build system for Mac (#1073) * WIP: add "pymod" * To fix the issue reported by GitHub ticket No.1040 * WIP: To build "pymod" * Updated the build system for Mac. * Updated the build system for Mac. --- macbuild/ReadMe.md | 34 +- macbuild/Resources/script-bundle-A.zip | Bin 4440184 -> 4441255 bytes macbuild/Resources/script-bundle-B.zip | Bin 4441504 -> 4442749 bytes macbuild/Resources/script-bundle-P.zip | Bin 4463962 -> 4465202 bytes macbuild/build4mac.py | 451 ++++++++++++++++++------- 5 files changed, 348 insertions(+), 137 deletions(-) diff --git a/macbuild/ReadMe.md b/macbuild/ReadMe.md index 929985b58..2ba660933 100644 --- a/macbuild/ReadMe.md +++ b/macbuild/ReadMe.md @@ -1,9 +1,9 @@ -Relevant KLayout version: 0.27.5
+Relevant KLayout version: 0.27.9
Author: Kazzz-S
-Last modified: 2021-11-27
+Last modified: 2022-04-30
# 1. Introduction -This directory **`macbuild`** contains different files required for building KLayout (http://www.klayout.de/) version 0.27.5 or later for different 64-bit macOS, including: +This directory **`macbuild`** contains different files required for building KLayout (http://www.klayout.de/) version 0.27.9 or later for different 64-bit macOS, including: * Catalina (10.15.7) : the primary development environment * Big Sur (11.x) : experimental; Apple M1 chip is not tested since the author does not own an M1 Mac * Monterey (12.x) : -- ditto -- @@ -63,8 +63,9 @@ $ /usr/bin/python --version Python 2.7.16 ``` -Big Sur (11.x) and Monterey (12.x) still provide the Python 2.7 binaries to run various legacy applications.
+Big Sur (11.x) and Monterey (< 12.3) still provide the Python 2.7 binaries to run various legacy applications.
However, the latest Xcode 13.1 does not allow us to link the legacy Python 2.7 library with the newly compiled KLayout binaries.
+Moreover, Monterey (12.3.1) finally eliminated the Python 2.7 binaries.
Therefore, Homebrew is adopted as the default environment for Big Sur and Monterey. The build script **`build4mac.py`** provides several possible combinations of Qt[6|5], Ruy, and Python modules to accommodate such a slightly complex environment.
@@ -82,7 +83,7 @@ You need to have: ``` --------------------------------------------------------------------------------------------------------- << Usage of 'build4mac.py' >> - for building KLayout 0.27.5 or later on different Apple macOS / Mac OSX platforms. + for building KLayout 0.27.9 or later on different Apple macOS / Mac OSX platforms. $ [python] ./build4mac.py option & argument : descriptions (refer to 'macbuild/build4mac_env.py' for details)| default value @@ -109,6 +110,7 @@ $ [python] ./build4mac.py : Ana3: use Python 3.8 from Anaconda3 | : HB39: use Python 3.9 from Homebrew | : HBAuto: use the latest Python 3.x auto-detected from Homebrew | + [-j|--jump2pymod] : jump into build (developer's use only) | disabled [-n|--noqtbinding] : don't create Qt bindings for ruby scripts | disabled [-u|--noqtuitools] : don't include uitools in Qt binding | disabled [-m|--make