Skip to content

Commit d3a3a36

Browse files
committed
Write dist-info INSTALLER file on builds
This file is informational and allows tools to report the software that installed a package.
1 parent c28ea31 commit d3a3a36

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

python/lsst/sconsUtils/builders.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,15 @@ def makePackageMetadata(target, source, env):
695695
self.Command(filename, [], self.Action(makePackageMetadata, strfunction=lambda *args: None))
696696
)
697697

698+
def makeInstallerFile(target, source, env):
699+
# Write the INSTALLER file. This is purely something to potentially
700+
# tell the end user the tooling that was used to install the files.
701+
with open(target[0].abspath, "w") as outFile:
702+
print("sconsUtils", file=outFile)
703+
704+
filename = os.path.join(distDir, "INSTALLER")
705+
results.append(self.Command(filename, [], self.Action(makeInstallerFile, strfunction=lambda *args: None)))
706+
698707
# Create the entry points file if defined in the pyproject.toml file.
699708
entryPoints = toml_project.get("entry-points", {})
700709
if entryPoints:

0 commit comments

Comments
 (0)