aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAnthony Ramine2013-11-02 20:38:13 +0100
committerAdam Vandenberg2013-12-02 18:30:55 -0800
commite3077d1aedb563ca9906d1e4c2531d0e9d4cb605 (patch)
treecfb48759c78aedc9ea8efdcdcae64dd4f9922558 /Library/Formula
parentec6a7dae085a3be7893a6e619887db770e15698d (diff)
downloadhomebrew-e3077d1aedb563ca9906d1e4c2531d0e9d4cb605.tar.bz2
pyqt5: properly rename Python 2.x executables
Closes #23902. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pyqt5.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/pyqt5.rb b/Library/Formula/pyqt5.rb
index 19a9efafd..fdf205bac 100644
--- a/Library/Formula/pyqt5.rb
+++ b/Library/Formula/pyqt5.rb
@@ -37,8 +37,8 @@ class Pyqt5 < Formula
system "make", "clean" # because this python block may be run twice
# For PyQt5 we default to put 3.x bindings in bin, unless --without-python3
- if build.with? 'python3' and build.with? 'python'
- ['pyuic5', 'pyrcc5', 'pylupdate5'].each { |f| mv(bin/f, bin/"#{f}-py2")}
+ if python.version.major == 2 and build.with? 'python3'
+ ['pyuic5', 'pyrcc5', 'pylupdate5'].each { |f| mv bin/f, bin/"#{f}-py2" }
end
end
end