depends_on :python => 'module' allow user packages

Some prefer to install with `--user` into their
home. For example to avoid `sudo` with system's
python. Now Homebrew can use those modules to
satisfy a python dependency on a certain module.
This commit is contained in:
Samuel John 2013-06-19 12:18:48 +02:00
parent fbaf8a5968
commit 215b584c3b

View File

@ -258,7 +258,6 @@ class PythonInstalled < Requirement
ENV.prepend 'PATH', binary.dirname, ':' unless from_osx?
ENV['PYTHONHOME'] = nil # to avoid fuck-ups.
ENV['PYTHONNOUSERSITE'] = '1'
ENV['PYTHONPATH'] = global_site_packages.to_s unless brewed?
# Python respects the ARCHFLAGS var if set. Shall we set them here?
# ENV['ARCHFLAGS'] = ??? # FIXME