From 016e5adbeb31004ccff044f46c99ef5035f50e4f Mon Sep 17 00:00:00 2001 From: Kazunari Sekigawa Date: Wed, 3 Jan 2018 07:41:44 +0900 Subject: [PATCH 1/5] To test "build4mac.py" family with non-standard script language support like Anaconda. This refs #4. --- macbuild/build4mac.py | 4 ++-- macbuild/build4mac_env.py | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/macbuild/build4mac.py b/macbuild/build4mac.py index 24aafd699..1bb775bea 100755 --- a/macbuild/build4mac.py +++ b/macbuild/build4mac.py @@ -376,9 +376,9 @@ def RunMainBuildBash(): # (C) want Qt bindings with Ruby scripts? if NoQtBindings: - parameters += "\\\n -without-qtbinding" + parameters += " \\\n -without-qtbinding" else: - parameters += "\\\n -with-qtbinding" + parameters += " \\\n -with-qtbinding" # (D) options to `make` tool if not MakeOptions == "": diff --git a/macbuild/build4mac_env.py b/macbuild/build4mac_env.py index 7dce1cdf3..525784145 100755 --- a/macbuild/build4mac_env.py +++ b/macbuild/build4mac_env.py @@ -123,18 +123,22 @@ PythonHighSierra= { 'exe': '/System/Library/Frameworks/Python.framework/Versions } # Using anaconda (https://www.anaconda.com/download/#macos): *+*+*+ EXPERIMENTAL *+*+*+ -# prepared by: $ conda create -n py27klayout python=2.7 +# If the path to your `conda` command is '$HOME/anaconda/bin/conda' +# and your Python environment was prepared by: $ conda create -n py27klayout python=2.7 +# # No additional modules are added in the beginning. Anaconda27 = { 'exe': '$HOME/anaconda/envs/py27klayout/bin/python2.7' , - 'inc': '$HOME/anaconda/envs/py27klayout/include', + 'inc': '$HOME/anaconda/envs/py27klayout/include/python2.7', 'lib': '$HOME/anaconda/envs/py27klayout/lib/libpython2.7.dylib' } # Using anaconda (https://www.anaconda.com/download/#macos): *+*+*+ EXPERIMENTAL *+*+*+ -# prepared by: $ conda create -n py36klayout python=3.6 +# If the path to your `conda` command is '$HOME/anaconda/bin/conda' +# and your Python environment was prepared by: $ conda create -n py36klayout python=3.6 +# # No additional modules are added in the beginning. Anaconda36 = { 'exe': '$HOME/anaconda/envs/py36klayout/bin/python3.6' , - 'inc': '$HOME/anaconda/envs/py36klayout/include', + 'inc': '$HOME/anaconda/envs/py36klayout/include/python3.6m', 'lib': '$HOME/anaconda/envs/py36klayout/lib/libpython3.6m.dylib' } From 91bf2a1eb0843448374105d1d5277f8cd53aa191 Mon Sep 17 00:00:00 2001 From: Kazunari Sekigawa Date: Wed, 3 Jan 2018 12:53:41 +0900 Subject: [PATCH 2/5] To test "build4mac.py" family with non-standard script language support like Anaconda. This refs #4. --- macbuild/build4mac.py | 40 +++++++++++++++++++++++-------------- macbuild/build4mac_env.py | 41 ++++++++++++++++++++++++++++++++------ macbuild/build4mac_util.py | 7 +++++-- 3 files changed, 65 insertions(+), 23 deletions(-) diff --git a/macbuild/build4mac.py b/macbuild/build4mac.py index 1bb775bea..f43ce7c15 100755 --- a/macbuild/build4mac.py +++ b/macbuild/build4mac.py @@ -61,9 +61,10 @@ def SetGlobals(): Usage += " : * key type names below are case insensitive * | \n" Usage += " : 'nil' = not to support the script language | \n" Usage += " : 'Sys' = using the OS standard script language | \n" + Usage += " : Refer to 'macbuild/build4mac_env.py' for details| \n" Usage += " [-q|--qt ] : type=['Qt4MacPorts', 'Qt5MacPorts'] | qt5macports \n" - Usage += " [-r|--ruby ] : type=['nil', 'Sys', 'RubySource'] | sys \n" - Usage += " [-p|--python ] : type=['nil', 'Sys', 'Anaconda27', 'Anaconda36'] | sys \n" + Usage += " [-r|--ruby ] : type=['nil', 'Sys', 'Src24', 'MP24'] | sys \n" + Usage += " [-p|--python ] : type=['nil', 'Sys', 'Ana27', 'Ana36', 'MP36'] | sys \n" Usage += " [-n|--noqtbinding] : don't create Qt bindings for ruby scripts | disabled \n" Usage += " [-m|--make