diff options
| author | Mike McQuaid | 2018-03-03 09:42:25 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2018-03-03 09:42:25 +0000 | 
| commit | 70253f0009ee8095a5d10ee7bdd891f1fe5cc35c (patch) | |
| tree | 4e161095ae6bce7c24bb7a9bd8b1abce43108b1c /Library/Homebrew/formula.rb | |
| parent | 84d718cbef0b96ef621a2ec51171f7d66c20f87d (diff) | |
| download | brew-70253f0009ee8095a5d10ee7bdd891f1fe5cc35c.tar.bz2 | |
Adjust docs and more internal code for Python 3.
Now we have `python` for Python 3 and `python@2` for Python 2 some more
adjustments need to be made.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 228eb537b..521c62637 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2201,12 +2201,12 @@ class Formula      # # `build.with?` or `build.without? "another_formula"`:      # depends_on "postgresql" if build.without? "sqlite"      # +    # <pre># Python 3.x if the `--with-python` is given to `brew install example` +    # depends_on "python3" => :optional</pre>      # <pre># Python 2.7: -    # depends_on "python"</pre> +    # depends_on "python@2"</pre>      # <pre># Python 2.7 but use system Python where possible -    # depends_on "python" if MacOS.version <= :snow_leopard</pre> -    # <pre># Python 3.x if the `--with-python3` is given to `brew install example` -    # depends_on "python3" => :optional</pre> +    # depends_on "python@2" if MacOS.version <= :snow_leopard</pre>      def depends_on(dep)        specs.each { |spec| spec.depends_on(dep) }      end | 
