Commit Graph
14 Commits
Author SHA1 Message Date
Samuel John 0b50110107 Python 2.x and 3.x support
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.

To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.

The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:

python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.

Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.

python do
  system python, 'setup.py', "--prefix=#{prefix}"
end

Read more in the Homebrew wiki.
2013-06-03 17:29:43 +02:00
David Aguilar e139d3f12e git-cola 1.8.3
Closes #19647.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-07 07:46:27 -07:00
Jack Nagel 74381fef56 Update github URLs 2013-04-06 21:34:41 -05:00
Adam Vandenberg 5037ad757a git-cola: use archive URL 2013-04-01 07:16:11 -07:00
Brett Koonce c689ae0618 git-cola 1.8.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-29 09:19:43 -07:00
Brett Koonce 09ac4324ed git-cola v1.8.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-01 10:31:43 -08:00
Adam Vandenberg 9c5b5423f6 git-cola: use new dsl 2012-08-27 21:14:08 -07:00
Jack Nagel 44197a12f9 git-cola: prepend correct directory to PYTHONPATH
Fixes #13850.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-20 22:41:29 -05:00
David Aguilar 22f0afdc0f git-cola 1.8.0
Signed-off-by: David Aguilar <davvid@gmail.com>

Closes #14303.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-20 21:24:45 -05:00
David Aguilar 6d6fcebe50 git-cola 1.7.7
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-05-05 09:21:13 -07:00
David Aguilar 7566662a0a git-cola 1.7.6
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-17 21:07:22 -07:00
Jack Nagel f91b31256d git-cola: fix audit warning
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25 18:05:15 -06:00
David Aguilar 1988881d5a git-cola 1.7.4.1
Set PYTHONPATH so that brew's PyQt4 modules are found.
Update to v1.7.4.1 and change the URLs to use github.
Add a --build-docs option for building manpages.

Closes #7462.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-23 18:04:55 -08:00
ento 0936f8bb9d git-cola 1.4.3
git-cola is a Git GUI built on PyQt.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-13 14:38:14 -07:00