Skip to content

Commit

Permalink
Change to default berw python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
markwu committed Jun 2, 2020
1 parent 9675057 commit b97b1ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Formula/macvim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Macvim < Formula
depends_on :xcode => :build
depends_on "cscope"
depends_on "lua"
depends_on "python@3.8"
depends_on "python"
depends_on "ruby"

def install
Expand Down Expand Up @@ -50,7 +50,7 @@ def install
assert_match "+ruby", output

# Simple test to check if MacVim was linked to Homebrew's Python 3
py3_exec_prefix = Utils.popen_read(Formula["python@3.8"].opt_bin/"python3-config", "--exec-prefix")
py3_exec_prefix = Utils.popen_read(Formula["python"].opt_bin/"python3-config", "--exec-prefix")
assert_match py3_exec_prefix.chomp, output
(testpath/"commands.vim").write <<~EOS
:python3 import vim; vim.current.buffer[0] = 'hello python3'
Expand Down
4 changes: 2 additions & 2 deletions Formula/vim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ class Vim < Formula
depends_on "gettext"
depends_on "lua"
depends_on "perl"
depends_on "python@3.8"
depends_on "python"
depends_on "ruby"

uses_from_macos "ncurses"

def install
ENV.prepend_path "PATH", Formula["python@3.8"].opt_libexec/"bin"
ENV.prepend_path "PATH", Formula["python"].opt_libexec/"bin"

# https://github.com/Homebrew/homebrew-core/pull/1046
ENV.delete("SDKROOT")
Expand Down

0 comments on commit b97b1ca

Please sign in to comment.