make install DESTDIR

Martin v. Loewis martin at v.loewis.de
Mon Aug 23 17:23:09 EDT 2010


> Martin- Asking for help :)

Ok. Please try the patch below.

If this works, please make a bug report.

Regards,
Martin

Index: Lib/distutils/util.py
===================================================================
--- Lib/distutils/util.py       (Revision 84197)
+++ Lib/distutils/util.py       (Arbeitskopie)
@@ -220,7 +220,7 @@
         if not os.path.isabs(pathname):
             return os.path.join(new_root, pathname)
         else:
-            return os.path.join(new_root, pathname[1:])
+            return os.path.join(new_root, pathname.lstrip('/'))

     elif os.name == 'nt':
         (drive, path) = os.path.splitdrive(pathname)



More information about the Python-list mailing list