Commits

Ville Suoranta authored 05d9d968863
Escape double quotes

casatools/setup.py

Modified
222 222 if Proc([ "scripts/mod-closure", "--preserve-relative-paths", extdir ]) != 0:
223 223 sys.exit("\tclosure generation failed...")
224 224 if isexe("scripts/find-glibc-private"):
225 225 if Proc(["scripts/find-glibc-private", "--delete", extdir]) != 0:
226 226 sys.exit("\tGLIBC_PRIVATE cleanup failed...")
227 227
228 228 #Convert /opt/local/lib to @rpath on macOS
229 229 if (sys.platform == 'darwin'):
230 230 casac_lib_dir = extdir + "/casatools/__casac__/lib"
231 231 from subprocess import call
232 - status=call("for f in `ls`; do if [[ $(otool -l $f | grep "path /opt/local/lib" | grep -v "/opt/local/lib/.*gcc") ]];then install_name_tool -rpath /opt/local/lib @loader_path:@loader_path/lib:@rpath $f ;fi; done",cwd=casac_lib_dir,shell=True)
232 + status=call("for f in `ls`; do if [[ $(otool -l $f | grep \"path /opt/local/lib\" | grep -v \"/opt/local/lib/.*gcc\") ]];then install_name_tool -rpath /opt/local/lib @loader_path:@loader_path/lib:@rpath $f ;fi; done",cwd=casac_lib_dir,shell=True)
233 233
234 234
235 235 def generate_extensions():
236 236
237 237 extensions = []
238 238 cmdclass = {}
239 239
240 240 cmdclass = {'build': XmlCMakeBuild, 'build_ext': XmlCMakeBuildExt}
241 241
242 242 casatoolsswig_ext = XmlCMakeExtension('casatoolsswig')

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut