From: Stefan Behnel Date: Mon, 31 Dec 2007 13:24:13 +0000 (+0100) Subject: C target directory fix for build_ext X-Git-Tag: 0.9.6.14~29^2~62^2~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f669e94f0905184a79718097318b4ddf3897e6ac;p=cython.git C target directory fix for build_ext --- 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)