Make custom install hook configurable.
@@ -40,6 +40,7 @@ class install(_install):
def run(self):
_install.run(self)
+ if os.getenv("LAW_INSTALL_CUSTOM_SCRIPT", "").lower() in ("1", "yes", "true"):
try:
with open(os.path.join(this_dir, "law", "cli", "law")) as f:
content = f.read()
@@ -88,6 +89,6 @@ setup(
"law.contrib.git": ["bundle_repository.sh", "repository_checksum.sh"],
"law.contrib.cms": ["bundle_cmssw.sh", "cmsdashb_hooks.sh", "bin/apmon"],
},
- # cmdclass={"install": install},
+ cmdclass={"install": install},
entry_points={"console_scripts": ["law = law.cli:run"]},
)
