Skip to content

Commit

Permalink
Fix macOS builds
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKrughoff committed Jun 3, 2019
1 parent 63802fe commit bfe2fa5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auxTel/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ for name in ("PYTHONPATH", "LD_LIBRARY_PATH",
# we may need an explicit library load path specified in the command
libpathstr = lsst.sconsUtils.utils.libraryLoaderEnvironment()

# We always run these commands with an explicit python rather than relying on the shebang
python = "{} python".format(libpathstr)

pipe_tasks_dir = getPackageDir('pipe_tasks')
data_dir = getPackageDir('obs_lsst_data')
command = (f"{pipe_tasks_dir}/bin/ingestDefects.py auxTel/CALIB/ {data_dir}/auxTel/defects "+
command = (f"{python} {pipe_tasks_dir}/bin/ingestDefects.py auxTel/CALIB/ {data_dir}/auxTel/defects "+
"--calib auxTel/CALIB --config clobber=True")
commandInst = env.Command('CALIB/calibRegistry.sqlite3', [], command)
env.Depends(commandInst, lsst.sconsUtils.targets["python"])

0 comments on commit bfe2fa5

Please sign in to comment.