Commit 1502d742 authored by Lennart Regebro's avatar Lennart Regebro

Fixed a bug that gave a traceback when doing install --help under Python 3.

--HG--
branch : distribute
extra : rebase_source : 9fcc8ddc5a2f8f57660d940375e1356c9a600ac3
parent 7596dc0c
......@@ -245,7 +245,7 @@ def _remove_flat_installation(placeholder):
def after_install(dist):
log.warn('After install bootstrap.')
placeholder = dist.get_command_obj('install').install_purelib
if not os.path.exists(placeholder):
if not placeholder or not os.path.exists(placeholder):
log.warn('Could not find the install location')
return
pyver = '%s.%s' % (sys.version_info[0], sys.version_info[1])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment