Skip to content

Commit

Permalink
fix install of bin
Browse files Browse the repository at this point in the history
'scons install' would not install the 'bin' directory
unless it already existed, but it is usually created
by the 'shebang' target. Add it explicitly if we're
going to end up creating it.
  • Loading branch information
PaulPrice committed Mar 6, 2020
1 parent 4251656 commit fe6c1d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/lsst/sconsUtils/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ def finish(defaultTargets=DEFAULT_TARGETS,
for path in os.listdir("."):
if os.path.isdir(path) and not path.startswith("."):
subDirList.append(path)
if "bin.src" in subDirList and "shebang" in state.targets:
# shebang makes a directory that should be installed
subDirList += ["bin"]
install = state.env.InstallLSST(state.env["prefix"],
[subDir for subDir in subDirList],
ignoreRegex=ignoreRegex)
Expand Down

0 comments on commit fe6c1d3

Please sign in to comment.