diff options
| author | Tim D. Smith | 2014-12-10 09:10:44 -0800 | 
|---|---|---|
| committer | Tim D. Smith | 2014-12-10 14:18:24 -0800 | 
| commit | 65a7a631ea32306cdc39a28fc30076395c183f25 (patch) | |
| tree | d64e0863474b69eefb841331a467ca0b3941de73 /Library/Homebrew/language/python.rb | |
| parent | fe16f36f3c19a29c5edfec4483d14b09cefdc175 (diff) | |
| download | brew-65a7a631ea32306cdc39a28fc30076395c183f25.tar.bz2 | |
Language::Python.setup_install: add deprecation warning
Diffstat (limited to 'Library/Homebrew/language/python.rb')
| -rw-r--r-- | Library/Homebrew/language/python.rb | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index 83670dba7..37808780d 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -54,6 +54,13 @@ module Language      # deprecated; use system "python", *setup_install_args(prefix) instead      def self.setup_install python, prefix, *args +      opoo <<-EOS.undent +        Language::Python.setup_install is deprecated. +        If you are a formula author, please use +          system "python", *Language::Python.setup_install_args(prefix) +        instead. +      EOS +        # force-import setuptools, which monkey-patches distutils, to make        # sure that we always call a setuptools setup.py. trick borrowed from pip:        # https://github.com/pypa/pip/blob/043af83/pip/req/req_install.py#L743-L780 | 
