-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1544 from Kazzz-S/0.28.13-mac1
Overhauled the build system for MacOS ['Monterey', 'Ventura', 'Sonoma'] to build KLayout-0.28.13 or later with support for libgit2
- Loading branch information
Showing
22 changed files
with
824 additions
and
972 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/Applications/klayout.app/Contents/MacOS/klayout -b -r | ||
import readline | ||
import code | ||
import sys | ||
import os | ||
pwd = os.getcwd() | ||
sys.path.append(pwd) | ||
|
||
rootPython = "/Applications/klayout.app/Contents/Frameworks/Python.framework/Versions" | ||
verPython = "${PYTHON_VER}" | ||
piptarget = [ "--target", "%s/%s/lib/python%s/site-packages" % (rootPython, verPython, verPython) ] | ||
|
||
piphelpstr = """ | ||
-------------------------------------------------------------------------------- | ||
(1) Install ['pandas', 'scipy', 'matplotlib'] | ||
>>> import pip | ||
>>> pip.main( ['install', 'pandas', 'scipy', 'matplotlib'] + piptarget ) | ||
(2) List modules | ||
>>> import pip | ||
>>> pip.main( ['list'] ) | ||
(3) Uninstall ['scipy'] | ||
>>> import pip | ||
>>> pip.main( ['uninstall', 'scipy'] ) | ||
-------------------------------------------------------------------------------- | ||
""" | ||
def howtopip(): | ||
print(piphelpstr) | ||
|
||
|
||
variables = globals().copy() | ||
variables.update(locals()) | ||
shell = code.InteractiveConsole(variables) | ||
cprt = 'Type "help", "copyright", "credits" or "license" for more information.' | ||
banner = "Python %s on %s\n%s\n(%s)" % (sys.version, sys.platform, | ||
cprt, "KLayout Python Console") | ||
exit_msg = 'now exiting %s...' % "KLayout Python Console" | ||
shell.interact(banner, exit_msg) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
#=============================================================================== | ||
# File: "macbuild/macQAT2.sh" | ||
# | ||
# The top Bash script to run "ut_runner" after building KLayout | ||
# (http://www.klayout.de/index.php) version 0.26.1 or later on different Apple | ||
# Mac OSX platforms. | ||
# | ||
# This script must be copied to a directory that can be found in $PATH. | ||
#=============================================================================== | ||
|
||
prjdir=`pwd` | ||
|
||
if [ $# -ge 2 ]; then | ||
first_arg=$1 | ||
shift | ||
remaining_args=("$@") | ||
echo "#########################" | ||
echo "# Starging macQAT2.sh #" | ||
echo "#########################" | ||
echo " Current Dir: $prjdir" | ||
echo " First Arg: $first_arg" | ||
echo "Remaining Args: ${remaining_args[@]}" | ||
echo "" | ||
export TESTSRC=../ | ||
export TESTTMP=$first_arg | ||
export DYLD_LIBRARY_PATH=$prjdir:$prjdir/db_plugins:$prjdir/lay_plugins | ||
./ut_runner ${remaining_args[@]} | ||
else | ||
echo "Usage: -------------------------------------------------" | ||
echo " $ macQAT2.sh <test_dir> <args to ./ut_runner>" | ||
echo " ex. $ change directory to a *.macQAT/" | ||
echo " $ macQAT2.sh __Homebrew tlGitTests" | ||
echo "--------------------------------------------------------" | ||
fi | ||
|
||
#-------------- | ||
# End of File | ||
#-------------- |
Oops, something went wrong.