Skip to content

Commit 08ebb53

Browse files
authored
Merge pull request Homebrew#236531 from Homebrew/spack-remove-postinstall
spack: remove postinstall
2 parents a65fcb1 + 306878e commit 08ebb53

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Formula/s/spack.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,22 @@ class Spack < Formula
1212
end
1313

1414
bottle do
15-
rebuild 1
16-
sha256 cellar: :any_skip_relocation, all: "123abac0cc1f1c77661a407c1ca5f2946bd327feaa4e83837a1287953d758f6c"
15+
rebuild 2
16+
sha256 cellar: :any_skip_relocation, all: "7ac4187c520f5429bdd8e5c407188fbfbd778795bb4437a8e762934619bc5d9d"
1717
end
1818

1919
uses_from_macos "python"
2020

21+
skip_clean "var/spack/junit-report"
22+
2123
def install
2224
# Remove Windows files
2325
rm Dir["bin/*.bat", "bin/*.ps1", "bin/haspywin.py"]
2426
# Build an `:all` bottle by removing test files
2527
rm_r "lib/spack/spack/test"
2628

2729
prefix.install Dir["*"]
28-
end
29-
30-
def post_install
31-
mkdir_p prefix/"var/spack/junit-report" unless (prefix/"var/spack/junit-report").exist?
30+
(prefix/"var/spack/junit-report").mkpath
3231
end
3332

3433
test do

0 commit comments

Comments
 (0)