diff -r 413c0b0a105f Lib/distutils/dist.py --- a/Lib/distutils/dist.py Mon Apr 15 09:53:49 2013 -0400 +++ b/Lib/distutils/dist.py Mon Apr 15 14:13:39 2013 -0400 @@ -343,6 +343,15 @@ def parse_config_files(self, filenames=None): from configparser import ConfigParser + ignore_options = [] + + # Ignore install directory options if we have a venv + if sys.prefix != sys.base_prefix: + ignore_options.extend([ + 'install-base', 'install-platbase', 'install-lib', + 'install-platlib', 'install-purelib', 'install-script', + 'install-headers', 'install-scripts', 'install-data',]) + if filenames is None: filenames = self.find_config_files() @@ -359,7 +368,7 @@ opt_dict = self.get_option_dict(section) for opt in options: - if opt != '__name__': + if opt != '__name__' and opt not in ignore_options: val = parser.get(section,opt) opt = opt.replace('-', '_') opt_dict[opt] = (filename, val)