docker-squash: move to Python 3
This commit is contained in:
parent
e9cd4d9781
commit
b66efff215
1 changed files with 7 additions and 6 deletions
|
@ -3,7 +3,7 @@ class DockerSquash < Formula
|
|||
homepage "https://github.com/goldmann/docker-squash"
|
||||
url "https://github.com/goldmann/docker-squash/archive/1.0.7.tar.gz"
|
||||
sha256 "0c9d3be78c4d0ce478a6e1358ba07fc3a22f6d68eb426533d503bb7e9f3ba829"
|
||||
revision 1
|
||||
revision 2
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
|
@ -13,7 +13,7 @@ class DockerSquash < Formula
|
|||
sha256 "1ef756a3498a2fab26e94bc87eb6767eb707e51b17ef8ab58045eeb80c127ed1" => :el_capitan
|
||||
end
|
||||
|
||||
depends_on "python@2"
|
||||
depends_on "python"
|
||||
|
||||
resource "backports.ssl_match_hostname" do
|
||||
url "https://files.pythonhosted.org/packages/76/21/2dc61178a2038a5cb35d14b61467c6ac632791ed05131dda72c20e7b9e23/backports.ssl_match_hostname-3.5.0.1.tar.gz"
|
||||
|
@ -71,15 +71,16 @@ class DockerSquash < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
||||
xy = Language::Python.major_minor_version "python3"
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{xy}/site-packages"
|
||||
resources.each do |r|
|
||||
r.stage do
|
||||
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
system "python3", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
end
|
||||
end
|
||||
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
||||
system "python", *Language::Python.setup_install_args(libexec)
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages"
|
||||
system "python3", *Language::Python.setup_install_args(libexec)
|
||||
|
||||
bin.install Dir[libexec/"bin/*"]
|
||||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
|
|
Loading…
Reference in a new issue