ENV.userpaths! Hotfix to prefer brewed stuff
The depends_on 'nose' => :python tests fails even if people did `pip install nose` with their brewed pythons because during the tests the PATH is set up such that /usr/bin comes before HOMEBRE_PREFIX/bin. This is a hot fix. Proper fix need resorting the PATH.
This commit is contained in:
parent
441f7f4576
commit
4dac954cdb
@ -440,6 +440,8 @@ class << ENV
|
|||||||
def userpaths!
|
def userpaths!
|
||||||
paths = ORIGINAL_PATHS.map { |p| p.realpath.to_s rescue nil } - %w{/usr/X11/bin /opt/X11/bin}
|
paths = ORIGINAL_PATHS.map { |p| p.realpath.to_s rescue nil } - %w{/usr/X11/bin /opt/X11/bin}
|
||||||
self['PATH'] = paths.unshift(*self['PATH'].split(":")).uniq.join(":")
|
self['PATH'] = paths.unshift(*self['PATH'].split(":")).uniq.join(":")
|
||||||
|
# XXX hot fix to prefer brewed stuff (e.g. python) over /usr/bin.
|
||||||
|
prepend 'PATH', HOMEBREW_PREFIX/'bin', ':'
|
||||||
end
|
end
|
||||||
|
|
||||||
def with_build_environment
|
def with_build_environment
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user