Skip to content

Commit

Permalink
Merge pull request #411 from AlexanderRichert-NOAA/awscliv2_examples
Browse files Browse the repository at this point in the history
awscli-v2: remove examples dir
  • Loading branch information
climbfuji authored Mar 7, 2024
2 parents b1f29d9 + e1bd9dc commit 48f523b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions var/spack/repos/builtin/packages/awscli-v2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ class AwscliV2(PythonPackage):
depends_on("py-python-dateutil@2.1:2", type=("build", "run"))
depends_on("py-jmespath@0.7.1:1.0", type=("build", "run"))
depends_on("py-urllib3@1.25.4:1.26", type=("build", "run"))

variant("examples", default=True, description="Install code examples")

@run_after("install")
@when("~examples")
def post_install(self):
examples_dir = join_path(python_purelib, "awscli", "examples")
remove_directory_contents(examples_dir)

0 comments on commit 48f523b

Please sign in to comment.