Build the Python extension by default and install it to the right location.
Fixes#4689.
Closes#12535.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Because of some quirks in how formulae are loaded, DSL methods invoked
in the class definition are called multiple times. This results in, for
example, duplicate dependencies and requirements.
Code that iterates over requirements and takes some action for each can
thus repeat things that shouldn't be repeated, like appending to
environment variables.
Make DependencyCollector's external_deps a Set, and define eql? and hash
on Requirement to prevent these duplicates.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Rather than doing type introspection in build.rb, just define a method
to perform the necessary environment setup for Requirements.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
MacOS.sdk_path is meant to return the SDK path that matches the version
argument, so store the result in a hash.
Fixes#13623.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
In PyPy 1.9, the directory "lib-python/modified-2.7" has been removed,
and its content merged into "lib-python/2.7" (from whatsnew-1.9.rst).
In PyPy 1.4.1, the location is "lib-python/modified-2.5.2".
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
The fish completion hadn't been updated since 2009; this brings it up
to date. Changes include:
* Create the list of commands the same way as in bash completion
* Add every option for every current command, with descriptions
* Fixes a bug in fish_complete_brew_command
* Allow fish_complete_brew_command to take multiple commands
* Expand functionality of fish_complete_homebrew_formula to support
other commands and taps, and change name to reflect new functionality
Tested on fishfish, but should be compatible with fish.
Fixes the problems discussed in 34c970 to ensure that `brew doctor`
does not look like it is broken on user setup problems but still
returns a sensible exit code for e.g. BrewBot.
Checking "not clt_version.empty?" is unnecessary if we are also checking
that dev_tools_path is /usr/bin.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>