029415
From 18f0d032b806f70dd1adbcab107dda875c61ba0b Mon Sep 17 00:00:00 2001
029415
From: Petr Vobornik <pvoborni@redhat.com>
029415
Date: Tue, 25 Oct 2016 16:23:45 +0200
029415
Subject: [PATCH] Work properly with path separators
029415
029415
---
029415
 setuptools/command/build_py.py | 5 ++++-
029415
 1 file changed, 4 insertions(+), 1 deletion(-)
029415
029415
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py
029415
index 8751acd493cf5c3c45022f29940ee2beda3bb6cd..0b5c3cfa994d21af2a03f2c50f1e5d166fe2bffc 100644
029415
--- a/setuptools/command/build_py.py
029415
+++ b/setuptools/command/build_py.py
029415
@@ -120,7 +120,10 @@ class build_py(_build_py, Mixin2to3):
029415
             build_dir = os.path.join(*([self.build_lib] + package.split('.')))
029415
 
029415
             # Length of path to strip from found files
029415
-            plen = len(src_dir)+1
029415
+            plen = len(src_dir)
029415
+            # Remove path seperator
029415
+            if plen:
029415
+                plen += 1
029415
 
029415
             # Strip directory from globbed filenames
029415
             filenames = [
029415
-- 
029415
2.7.4
029415