Skip to content

Commit

Permalink
Merge pull request #1737 from Kazzz-S/0.29.2-mac1
Browse files Browse the repository at this point in the history
Updated the macOS build system to build KLayout 0.29.2
  • Loading branch information
klayoutmatthias authored Jun 29, 2024
2 parents eaf6ba4 + f68dc1f commit f0fcba4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
5 changes: 3 additions & 2 deletions macbuild/ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Relevant KLayout version: 0.29.1<br>
Relevant KLayout version: 0.29.2<br>
Author: Kazzz-S<br>
Last modified: 2024-05-01<br>
Last modified: 2024-06-09<br>

# 1. Introduction
This directory **`macbuild`** contains various files required for building KLayout (http://www.klayout.de/) version 0.29.0 or later for different 64-bit macOS, including:
Expand Down Expand Up @@ -55,6 +55,7 @@ You need to have the followings:
* https://developer.apple.com/xcode/resources/
* https://mac.install.guide/commandlinetools/4
* Qt5 package from MacPorts or Anaconda3. Qt6, from Homebrew.
* libgit2 form MacPorts, Homebrew,or Anaconda3.
* Optionally, Ruby and Python packages from MacPorts, Homebrew, or Anaconda3
#### For matching versions of Ruby and Python, please also refer to `build4mac_env.py`.

Expand Down
2 changes: 1 addition & 1 deletion macbuild/build4mac_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
# install with 'sudo port install ruby33'
# [Key Type Name] = 'MP33'
Ruby33MacPorts = { 'exe': '/opt/local/bin/ruby3.3',
'inc': '/opt/local/include/ruby-3.3.1',
'inc': '/opt/local/include/ruby-3.3.3',
'lib': '/opt/local/lib/libruby.3.3.dylib'
}

Expand Down
14 changes: 10 additions & 4 deletions macbuild/nightlyBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,9 @@ def Build_Deploy():
#------------------------------------------------------------------------------
## To run the QA tests
#
# @param[in] exclude test to exclude such as 'pymod,pya'
# @param[in] excludeList list of tests to exclude such as ['pymod', 'pya']
#------------------------------------------------------------------------------
def Run_QATest( exclude ):
def Run_QATest( excludeList ):
pyRunnerQAT = "./macQAT.py"
myPlatform = Test_My_Platform()
dirQAT = Get_QAT_Directory( Get_Build_Target_Dict(), myPlatform )
Expand All @@ -548,7 +548,13 @@ def Run_QATest( exclude ):
if key == "ana3" and qttype == 6: # anaconda3 does not provide Qt6 so far
continue

command1 = [ pyRunnerQAT ] + [ '--run', '--exclude', '%s' % exclude ]
if key == "ana3":
excludeList += ['pymod']
exclude = ",".join( sorted( set(excludeList) ) )

command1 = [ pyRunnerQAT ] + [ '--run' ]
if not exclude == "":
command1 += [ '--exclude', '%s' % exclude ]
print( dirQAT[(qttype, key)], command1 )
#continue
os.chdir( dirQAT[(qttype, key)] )
Expand Down Expand Up @@ -707,7 +713,7 @@ def Main():
if Build:
Build_Deploy()
if QATest:
Run_QATest( 'pymod,pya' )
Run_QATest( [] ) # ex. ['pymod', 'pya']
if QACheck:
Check_QATest_Results( 20 )
elif MakeDMG:
Expand Down

0 comments on commit f0fcba4

Please sign in to comment.