aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 13:14:49 +0000
committerMike McQuaid2014-01-04 13:35:46 +0000
commit33e95cb74542e7655541ebe5a0b4260233fb7508 (patch)
tree10630db521a6476e50c1ebb2028fc13d5120a340 /Library/Formula
parent6c778fe960203213f6c83ad6ffd7cc0695056a0a (diff)
downloadhomebrew-33e95cb74542e7655541ebe5a0b4260233fb7508.tar.bz2
pyqwt: cleanup python usage.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pyqwt.rb26
1 files changed, 9 insertions, 17 deletions
diff --git a/Library/Formula/pyqwt.rb b/Library/Formula/pyqwt.rb
index 914476582..e37455a2d 100644
--- a/Library/Formula/pyqwt.rb
+++ b/Library/Formula/pyqwt.rb
@@ -19,27 +19,19 @@ class Pyqwt < Formula
def install
cd "configure" do
- python do
- system python,
- "configure.py",
- "--module-install-path=#{lib}/#{python.xy}/site-packages/PyQt4/Qwt5",
- "--sip-install-path=#{share}/sip#{python.if3then3}/Qwt5",
- "--uic-install-path=#{lib}/#{python.xy}/site-packages/PyQt4",
- "-Q", "../qwt-5.2"
- system "make install"
- system 'make clean'
- end
+ system "python",
+ "configure.py",
+ "--module-install-path=#{lib}/python2.7/site-packages/PyQt4/Qwt5",
+ "--sip-install-path=#{share}/sip/Qwt5",
+ "--uic-install-path=#{lib}/python2.7/site-packages/PyQt4",
+ "-Q", "../qwt-5.2"
+ system "make install"
+ system 'make clean'
end
end
- def caveats
- python.standard_caveats if python
- end
-
def test
- python do
- system python, "-c", "from PyQt4 import Qwt5 as Qwt"
- end
+ system "python", "-c", "from PyQt4 import Qwt5 as Qwt"
end
end