Commit Graph
17 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
Jack Nagel 1e846a34a7 shiboken: use qt-project URL 2013-01-10 20:19:07 -06:00
Jack Nagel 43f143f34f Update references to compat methods 2012-12-25 15:35:27 -06:00
Jack Nagel 4c0bf545c8 shiboken 1.1.2
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-13 13:26:35 -05:00
Jack Nagel 5e9ae9525c shiboken: use temporary MacPorts mirror
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-13 13:21:32 -05:00
nibbles 2bits 1b12ac8f70 shiboken: fix python
Shiboken uses CMake and needs the same help as OpenCV and VTK in
finding the Python Libraries and Headers.

Add code to find them.  Tested on Lion with clang and llvm from
XCode-4.3.3 using System Python, Homebrew Framework and loose
Python.

Fixes #13563

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-07 10:43:02 -07:00
William Woodall 6fc1d1f225 shiboken: fixed missing dependency on qt
Closes #13377.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-13 11:41:51 -08:00
nibbles 2bits ca777cb121 shiboken 1.1.1
Upgrade shiboken to version 1.1.1.
Remove the unneeded deps on generatorrunner and apiextractor.
Switch to an out of tree build with `mkdir 'macbuild' do` because
it will not compile otherwise when it tries to overwrite a
directory named `shiboken` with a binary named `shiboken`.
This results in an `error=21` which is defined in
`/usr/include/sys/errno.h` as `EISDIR`, is a directory.

Tested on Lion with clang and llvm from XCode-4.3.3.
Tested by building pyside-1.1.1 with shiboken-1.1.1.

Closes #13330.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-12 02:43:19 -05:00
Jack Nagel 071c3eb3f4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00
Charlie Sharpsteen 859db25522 Revert "ENV.rb: Always return integers from make_jobs"
This reverts commit ea1a9e603a.

Argh. Unrelated PySide changes slipped in.
2012-05-03 15:48:51 -07:00
Charlie Sharpsteen ea1a9e603a ENV.rb: Always return integers from make_jobs
When referencing `Hardware.processor_count`, `ENV.make_jobs` will return an
integer. If referencing the environment variable `HOMEBREW_MAKE_JOBS`, it
returned a string.

Now, the function always returns an integer.

Fixes #12033.
2012-05-03 15:45:31 -07:00
Adam Vandenberg 531a576509 Put source path last in cmake args 2012-02-24 21:35:51 -08:00
Charlie Sharpsteen 0db99616f8 PySide: Update to 1.1.0
Also updates the following dependencies:

  - ApiExtractor
  - GeneratorRunner
  - Shiboken

Also clean up dependency statements.
2012-01-08 15:35:57 -08:00
Charlie Sharpsteen d2e2d9ec04 PySide: Update to 1.0.9
Also updates dependencies:

  - apiextractor
  - generatorrunner
  - shiboken
2011-12-02 11:41:13 -08:00
Charlie Sharpsteen 65cb02daef PySide: Update to 1.0.8
Also updates dependencies:

  - apiextractor
  - generatorrunner
  - shiboken
2011-11-09 14:06:13 -08:00
Charlie Sharpsteen 74b13b8514 PySide: Update to 1.0.7
Also updates apiextractor, generatorrunner and shiboken.
2011-09-22 00:27:41 -07:00
Charlie Sharpsteen c429406c90 New formula for Shiboken
Shiboken is a plugin for GeneratorRunner that handles the generation of CPython
bindings to C++ libraries. Shiboken is used to compile PySide.
2011-08-25 17:47:22 -07:00