mirror of https://github.com/KLayout/klayout.git
parent
9b9d68a638
commit
fbcd9516a5
|
|
@ -4,7 +4,7 @@
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
# File: "macbuild/build4mac.py"
|
# File: "macbuild/build4mac.py"
|
||||||
#
|
#
|
||||||
# The main script for building KLayout (http://www.klayout.de/index.php)
|
# The top script for building KLayout (http://www.klayout.de/index.php)
|
||||||
# version 0.25 or later on different Apple Mac OSX platforms.
|
# version 0.25 or later on different Apple Mac OSX platforms.
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
from __future__ import print_function # to use print() of Python 3 in Python >= 2.7
|
from __future__ import print_function # to use print() of Python 3 in Python >= 2.7
|
||||||
|
|
@ -372,6 +372,21 @@ def Run():
|
||||||
#-----------------------------------------------------
|
#-----------------------------------------------------
|
||||||
# [3] Invoke the main Bash script
|
# [3] Invoke the main Bash script
|
||||||
#-----------------------------------------------------
|
#-----------------------------------------------------
|
||||||
|
myscript = "build4mac.py"
|
||||||
|
if subprocess.call( command, shell=True ) != 0:
|
||||||
|
print("")
|
||||||
|
print( "-------------------------------------------------------------" )
|
||||||
|
print( "!!! <%s>: failed to build KLayout" % myscript, file=sys.stderr )
|
||||||
|
print( "-------------------------------------------------------------" )
|
||||||
|
print("")
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
print("")
|
||||||
|
print( "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" )
|
||||||
|
print( "### <%s>: successfully built KLayout" % myscript, file=sys.stderr )
|
||||||
|
print( "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" )
|
||||||
|
print("")
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
## The main function
|
## The main function
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
# of different modules for building KLayout (http://www.klayout.de/index.php)
|
# of different modules for building KLayout (http://www.klayout.de/index.php)
|
||||||
# version 0.25 or later on different Apple Mac OSX platforms.
|
# version 0.25 or later on different Apple Mac OSX platforms.
|
||||||
#
|
#
|
||||||
# This file is imported by 'build4mac.py' main script.
|
# This file is imported by 'build4mac.py' script.
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
#-----------------------------------------------------
|
#-----------------------------------------------------
|
||||||
|
|
@ -71,7 +71,7 @@ Ruby24SrcBuild = { 'exe': '$HOME/Ruby24/bin/ruby',
|
||||||
'lib': '$HOME/Ruby24/lib/libruby.2.4.dylib'
|
'lib': '$HOME/Ruby24/lib/libruby.2.4.dylib'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Consolidated dictionary for Ruby
|
# Consolidated dictionary kit for Ruby
|
||||||
RubyDictionary = { 'nil' : None,
|
RubyDictionary = { 'nil' : None,
|
||||||
'RubyYosemite' : RubyYosemite,
|
'RubyYosemite' : RubyYosemite,
|
||||||
'RubyElCapitan' : RubyElCapitan,
|
'RubyElCapitan' : RubyElCapitan,
|
||||||
|
|
@ -129,7 +129,7 @@ Anaconda36 = { 'exe': '$HOME/anaconda/envs/py36klayout/bin/python3.6' ,
|
||||||
'lib': '$HOME/anaconda/envs/py36klayout/lib/libpython3.6m.dylib'
|
'lib': '$HOME/anaconda/envs/py36klayout/lib/libpython3.6m.dylib'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Consolidated dictionary for Python
|
# Consolidated dictionary kit for Python
|
||||||
PythonDictionary= { 'nil' : None,
|
PythonDictionary= { 'nil' : None,
|
||||||
'PythonYosemite' : PythonYosemite,
|
'PythonYosemite' : PythonYosemite,
|
||||||
'PythonElCapitan' : PythonElCapitan,
|
'PythonElCapitan' : PythonElCapitan,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue