Commits
129 129 | shell.runshell(cmd.split(), work_dir) |
130 130 | elif (platform.system()=="Darwin"): |
131 131 | casa_dir = "CASA.app" |
132 132 | # Extract .dmg |
133 133 | cmd = ('hdiutil attach ' + casa_pkg ) |
134 134 | shell.runshell(cmd.split(), work_dir) |
135 135 | cmd = ('cp -pR /Volumes/' + os.path.basename(casa_pkg) + "/" + casa_dir + " ." ) |
136 136 | shell.runshell(cmd.split(), work_dir) |
137 137 | cmd = ('hdiutil detach /Volumes/' + os.path.basename(casa_pkg) ) |
138 138 | shell.runshell(cmd.split(), work_dir) |
139 + | |
140 + | if "py36" in os.path.basename(casa_pkg): |
141 + | cmd = ("curl -O -L https://casa.nrao.edu/download/devel/casa6/Python.framework.3.6.12-bigsur-20230315-bz2-patch.tar.xz") |
142 + | shell.runshell(cmd.split(), work_dir ) |
143 + | cmd = ("tar xvf Python.framework.3.6.12-bigsur-20230315-bz2-patch.tar.xz") |
144 + | shell.runshell(cmd.split(), work_dir ) |
145 + | cmd = ("cp " + work_dir +"/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_bz2.cpython-36m-darwin.so " + casa_full_dir + "/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_bz2.cpython-36m-darwin.so" ) |
146 + | print (cmd) |
147 + | shell.runshell(cmd.split(), work_dir ) |
148 + | cmd = ("cp " + work_dir +"/Python.framework/Versions/3.6/lib/libbz2.1.0.dylib " + casa_full_dir + "/Contents/Frameworks//Python.framework/Versions/3.6/lib/libbz2.1.0.dylib" ) |
149 + | print (cmd) |
150 + | shell.runshell(cmd.split(), work_dir ) |
151 + | |
152 + | |
139 153 | # Install pipeline |
140 154 | casa_full_dir = work_dir + "/" + casa_dir |
141 155 | print("casadir: " + casa_dir) |
142 156 | print("fullpath: " + casa_full_dir) |
143 157 | |
144 158 | cmd = ('git clone ' + pipeline_repo) |
145 159 | shell.runshell(cmd.split(), work_dir) |
146 160 | |
147 161 | print("Checking out " + branch) |
148 162 | cmd = ('git checkout ' + branch) |