pyqt: remove Python 2
This commit is contained in:
parent
8f1d612d9e
commit
252af0b109
1 changed files with 30 additions and 35 deletions
|
@ -4,7 +4,7 @@ class Pyqt < Formula
|
|||
url "https://dl.bintray.com/homebrew/mirror/pyqt-5.10.1.tar.gz"
|
||||
mirror "https://downloads.sourceforge.net/project/pyqt/PyQt5/PyQt-5.10.1/PyQt5_gpl-5.10.1.tar.gz"
|
||||
sha256 "9932e971e825ece4ea08f84ad95017837fa8f3f29c6b0496985fa1093661e9ef"
|
||||
revision 1
|
||||
revision 2
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -15,7 +15,6 @@ class Pyqt < Formula
|
|||
end
|
||||
|
||||
depends_on "python"
|
||||
depends_on "python@2"
|
||||
depends_on "qt"
|
||||
depends_on "sip"
|
||||
|
||||
|
@ -27,8 +26,7 @@ class Pyqt < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
["python2", "python3"].each do |python|
|
||||
version = Language::Python.major_minor_version python
|
||||
version = Language::Python.major_minor_version "python3"
|
||||
args = ["--confirm-license",
|
||||
"--bindir=#{bin}",
|
||||
"--destdir=#{lib}/python#{version}/site-packages",
|
||||
|
@ -42,19 +40,17 @@ class Pyqt < Formula
|
|||
"--qml-plugindir=#{pkgshare}/plugins",
|
||||
"--verbose"]
|
||||
|
||||
system python, "configure.py", *args
|
||||
system "python3", "configure.py", *args
|
||||
system "make"
|
||||
system "make", "install"
|
||||
system "make", "clean"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/pyuic5", "--version"
|
||||
system "#{bin}/pylupdate5", "-version"
|
||||
|
||||
["python2", "python3"].each do |python|
|
||||
system python, "-c", "import PyQt5"
|
||||
system "python3", "-c", "import PyQt5"
|
||||
%w[
|
||||
Gui
|
||||
Location
|
||||
|
@ -65,7 +61,6 @@ class Pyqt < Formula
|
|||
WebEngineWidgets
|
||||
Widgets
|
||||
Xml
|
||||
].each { |mod| system python, "-c", "import PyQt5.Qt#{mod}" }
|
||||
end
|
||||
].each { |mod| system "python3", "-c", "import PyQt5.Qt#{mod}" }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue