Changeset 382 for python


Ignore:
Timestamp:
Mar 13, 2014, 9:52:20 PM (11 years ago)
Author:
dmik
Message:

Make util.change_root ignore empty new_root argument.

The makefile does --root=$(DESTDIR) and this caused new_root
to be "" when DESTDIR is not set. This caused setup.py to install
files to the local tree instead of the desired PREFIX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Lib/distutils/util.py

    r2 r382  
    218218    two, which is tricky on DOS/Windows and Mac OS.
    219219    """
     220    if new_root is None or new_root == '':
     221        return pathname
     222
    220223    if os.name == 'posix':
    221224        if not os.path.isabs(pathname):
Note: See TracChangeset for help on using the changeset viewer.