From f669e94f0905184a79718097318b4ddf3897e6ac Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 31 Dec 2007 14:24:13 +0100 Subject: [PATCH] C target directory fix for build_ext --- Cython/Distutils/build_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Distutils/build_ext.py b/Cython/Distutils/build_ext.py index 4d36e6e9..47696762 100644 --- a/Cython/Distutils/build_ext.py +++ b/Cython/Distutils/build_ext.py @@ -156,7 +156,7 @@ class build_ext(_build_ext.build_ext): target_dir = "" for source in sources: - (base, ext) = os.path.splitext(source) + (base, ext) = os.path.splitext(os.path.basename(source)) if ext == ".pyx": # Cython source file new_sources.append(os.path.join(target_dir, base + target_ext)) pyrex_sources.append(source) -- 2.26.2