Path: blob/master/build/pkgs/cython/patches/build_dir.patch
8820 views
From d5743eb30e21233d8adeedab5a73dc9444e367ff Mon Sep 17 00:00:00 20011From: "R. Andrew Ohana" <[email protected]>2Date: Sat, 11 May 2013 23:15:39 -07003Subject: [PATCH] fully fix build_dir copying45---6Cython/Build/Dependencies.py | 8 ++++----71 file changed, 4 insertions(+), 4 deletions(-)89diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py10index a2676e1..5e73782 10064411--- a/Cython/Build/Dependencies.py12+++ b/Cython/Build/Dependencies.py13@@ -671,10 +671,10 @@ def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, fo14if build_dir:15root = os.path.realpath(os.path.abspath(find_root_package_dir(m.sources[0])))16def copy_to_build_dir(filepath, root=root):17- filepath = os.path.abspath(filepath)18- if os.path.realpath(filepath).startswith(root):19- mod_dir = os.path.join(20- build_dir, os.path.dirname(_relpath(filepath)))21+ filepath = os.path.realpath(os.path.abspath(filepath))22+ if filepath.startswith(root):23+ mod_dir = os.path.join(build_dir,24+ os.path.dirname(_relpath(filepath, root)))25if not os.path.isdir(mod_dir):26os.makedirs(mod_dir)27shutil.copy(filepath, mod_dir)28--291.8.2.130313233