Install into Homebrew prefix
This is the problem with doing our own Python stuff. But easy_install doesn't work great. The solution is probably jezdez's pip formula.
This commit is contained in:
parent
403046a560
commit
c906149093
2 changed files with 47 additions and 10 deletions
|
@ -1,15 +1,36 @@
|
|||
require 'formula'
|
||||
|
||||
class Pyqt <Formula
|
||||
url 'http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.6.tar.gz'
|
||||
homepage 'http://www.riverbankcomputing.co.uk/software/pyqt'
|
||||
md5 '35258016c30a80f97689e643fba4704b'
|
||||
# NOTE this should be provided by pip eventually
|
||||
# currently easy_install doesn't seem to support it
|
||||
|
||||
class Pyqt <Formula
|
||||
url 'http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.6.1.tar.gz'
|
||||
homepage 'http://www.riverbankcomputing.co.uk/software/pyqt'
|
||||
md5 'c04aade8b63795f30ee7da2d3405d7e7'
|
||||
|
||||
depends_on 'sip'
|
||||
depends_on 'qt'
|
||||
|
||||
def install
|
||||
system "python", "./configure.py", "-g"
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
||||
ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/python", ':'
|
||||
|
||||
system "python", "./configure.py", "-g", "--confirm-license",
|
||||
"--bindir=#{bin}",
|
||||
"--destdir=#{lib}/python",
|
||||
"--sipdir=#{share}/sip"
|
||||
system "make"
|
||||
system "make install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS
|
||||
This formula won't function until you add the following to your PYTHONPATH
|
||||
environment variable:
|
||||
|
||||
#{HOMEBREW_PREFIX}/lib/python
|
||||
|
||||
Installing with easy_install would be ideal; then the libraries are installed
|
||||
to /Library/Python which is in the default OS X Python library path. However
|
||||
easy_install does not support this formula.
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,13 +1,29 @@
|
|||
require 'formula'
|
||||
|
||||
# NOTE this should be provided by pip eventually
|
||||
# currently easy_install doesn't seem to support it
|
||||
|
||||
class Sip <Formula
|
||||
url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.9.tar.gz'
|
||||
url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.9.1.tar.gz'
|
||||
homepage 'http://www.riverbankcomputing.co.uk/software/sip'
|
||||
md5 ''
|
||||
md5 '4bd61529a956a08841bb3cc2f949e1c4'
|
||||
|
||||
def install
|
||||
system "python", "./configure.py"
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
||||
system "python", "configure.py", "--destdir=#{lib}/python",
|
||||
"--bindir=#{bin}",
|
||||
"--incdir=#{include}"
|
||||
system "make install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS
|
||||
This formula won't function until you add the following to your PYTHONPATH
|
||||
environment variable:
|
||||
|
||||
#{HOMEBREW_PREFIX}/lib/python
|
||||
|
||||
Installing with easy_install would be ideal; then the libraries are installed
|
||||
to /Library/Python which is in the default OS X Python library path. However
|
||||
easy_install does not support this formula.
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue