Commit Graph
19 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 Baumgold 7396dd6a15 scons 2.3.0
Closes #18566.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-18 19:30:32 -07:00
Jon Thacker a5e77c2d4d scons 2.2.0
Closes #14238.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 22:17:21 -05:00
Charlie Sharpsteen 0581e5ce76 scons: Help scons to find its self
SCons was having a crisis of identity and could not find its own modules.
Things are now re-rooted to libexec so that the formula functions similar to
other python tools such as duplicity and denyhosts.
2012-07-06 15:19:40 -08:00
Dennis Luxen 3b57496bb6 Scons: Updating to 2.1.0
Closes #7938.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-10-05 14:50:25 -07:00
Adam Vandenberg ff0d38f371 scons: always use system Python
Fixes #5794
2011-08-31 21:26:06 -07:00
Adam Vandenberg 6e2d3ac3df scons: remove explicit version 2011-06-03 16:25:53 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg be9b9bb30d use gzip multi-arg support 2010-09-19 11:15:10 -07:00
Brett Cannon a8176c0522 Update SCons to 2.0.1.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-17 08:19:57 -07:00
Adam Vandenberg 002be92868 Normalize SourceForge urls 2010-09-09 14:25:57 -07:00
Adam Vandenberg d0efd9ee94 Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00
Adam Vandenberg 9b9d34ec4d Add explicit version to scons 2010-07-06 07:27:39 -07:00
Brett Cannon 1b3f4a9905 Update SCons to 2.0.0.final0.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-07-05 21:03:15 -07:00
Adam Vandenberg 91c17b2270 Update SCons to 1.3.0 2010-04-01 16:29:32 -07:00
Adam Vandenberg 221877aa3a scons - put manuals in proper place 2010-02-20 20:13:19 -08:00
Gavin Heavyside e1e110b40e split command and arguments to system call 2009-11-11 19:07:45 +00:00
elliottcable 88192206fc Some improvements to the Scons formula 2009-10-19 04:02:49 +01:00
Kieran Pilkington df74e86292 Add Scons formula
Signed-off-by: Max Howell <max@methylblue.com>

Scons is now an example of a system that we do duplicated even though easy_install supports it. This is because:

1) Easy Install installs a version that is not current;
2) We may need to directly depend on this formula to build other formula.
2009-10-19 04:02:49 +01:00