Skip to content

Commit 3c58641

Browse files
committed
spack: remove postinstall
1 parent 22a45bd commit 3c58641

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Formula/s/spack.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ class Spack < Formula
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)