Samuel John a3a0146d7c Python module deps, ext. python fix and 10.6 fix
* Fixes Homebrew/homebrew#20572 by tweaking the logic that decides
  which python is used by the `python` object
  inside a formula. There was a bug when on 10.6
  there is no Python 2.7 but a :recommended
  Python was still treated as being available.

* Use the user's PATH when looking for an external
  Python. Until now only brewed or OS X system's
  python have been found by `depends_on :python`.

  But now we support any Python in PATH (e.g.
  pyenv's python).

* Further, instead of handling python modules
  and import tests in LanguageModuleDependency,
  these are now handled by:

        depends_on :python => 'numpy'  # for example

  The old style

        depends_on 'numpy' => :python

  is still supported and is only an alias
  for the newer style (only for :python, the
  other languages are not altered by this commit).

  The reasoning is that if a formula requires
  a python module, it basically also needs
  python itself - and further that specific
  version of python has to provide the module.
  So the `PythonInstalled` is the natural place
  to check for the availability of a python
  module.

  Using a python module and other tags like
  :optional or :recommended is done like so:

        depends_on :python => [:optional, 'numpy']

  Specifying another PyPi (Python Package index)
  name than the module import name is seldom used
  but supported, too:

         depends_on :python => ['enchant'=>'pyenchant']

  A last note: For clarity, you can define
  multiple depends_on statements with different
  modules to be importable.`
2013-06-18 10:30:17 +02:00
..
2013-06-14 10:34:17 -05:00
2013-05-10 23:27:28 -05:00
2013-06-14 11:49:00 -05:00
2013-06-17 09:14:17 +01:00
2013-06-17 09:14:17 +01:00
2013-01-17 22:29:20 -06:00
2013-05-18 20:27:15 -05:00
2013-06-03 17:29:43 +02:00
2013-06-12 17:25:29 -05:00
2013-04-07 20:59:49 -05:00
2013-05-10 23:27:28 -05:00
2013-06-12 17:25:29 -05:00
2013-02-07 19:02:20 -06:00
2013-06-14 19:19:25 -05:00
2013-06-14 10:34:17 -05:00
2013-06-07 17:58:55 +02:00
2013-03-11 17:41:21 -05:00
2013-06-07 20:36:13 -05:00
2013-05-23 12:50:31 -07:00
2013-06-07 22:24:36 -05:00
2013-06-14 10:34:17 -05:00
2013-03-28 17:37:29 -05:00
2013-06-03 17:29:43 +02:00
2013-06-14 18:37:27 -05:00