aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlan LaMielle2014-10-06 06:42:57 -0700
committerMike McQuaid2014-10-06 15:05:02 +0100
commit8a7d769abd86567fadcde04be532bb717c418de4 (patch)
tree0a79a3590b18858b5650091d4dbfd2a98535f808 /Library/Formula
parent6323b3a70c4c909ff066c117030993857b3f4874 (diff)
downloadhomebrew-8a7d769abd86567fadcde04be532bb717c418de4.tar.bz2
mackup: use PYTHONPATH wrapper
Problems with the current mackup formula were reported in lra/mackup#330 and pull request #32833 was submitted by lra to address them. However, it was suggested to use a different approach that is more standard for stand-alone Python scripts. This patch applies the suggested changes. Closes #32967. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mackup.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/mackup.rb b/Library/Formula/mackup.rb
index 28535f696..2eebe9cf2 100644
--- a/Library/Formula/mackup.rb
+++ b/Library/Formula/mackup.rb
@@ -8,9 +8,11 @@ class Mackup < Formula
head "https://github.com/lra/mackup.git"
def install
+ ENV.prepend_create_path "PYTHONPATH", lib/"python2.7/site-packages"
system "python", "setup.py", "install", "--prefix=#{prefix}",
"--single-version-externally-managed",
"--record=installed.txt"
+ bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do