@cached_property<EOL><INDENT>def shared_locations(self):<DEDENT>
result = {}<EOL>shared_path = os.path.join(self.path, '<STR_LIT>')<EOL>if os.path.isfile(shared_path):<EOL><INDENT>with codecs.open(shared_path, '<STR_LIT:r>', encoding='<STR_LIT:utf-8>') as f:<EOL><INDENT>lines = f.read().splitlines()<EOL><DEDENT>for line in lines:<EOL><INDENT>key, value = line.split('<STR_LIT:=>', <NUM_LIT:1>)<EOL>if key == '<STR_LIT>':<EOL><INDENT>result.setdefault(key, []).append(value)<EOL><DEDENT>else:<EOL><INDENT>result[key] = value<EOL><DEDENT><DEDENT><DEDENT>return result<EOL>
A dictionary of shared locations whose keys are in the set 'prefix',
'purelib', 'platlib', 'scripts', 'headers', 'data' and 'namespace'.
The corresponding value is the absolute path of that category for
this distribution, and takes into account any paths selected by the
user at installation time (e.g. via command-line arguments). In the
case of the 'namespace' key, this would be a list of absolute paths
for the roots of namespace packages in this distribution.

The first time this property is accessed, the relevant information is
read from the SHARED file in the .dist-info directory.