Commit d35a9f8c authored by Robert Bradshaw's avatar Robert Bradshaw

Warn when absolute paths are used with build_dir.

This closes #2323.
parent 850511bb
...@@ -964,7 +964,8 @@ def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False, ...@@ -964,7 +964,8 @@ def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False,
# setup for out of place build directory if enabled # setup for out of place build directory if enabled
if build_dir: if build_dir:
c_file = os.path.join(build_dir, c_file) if os.path.isabs(c_file):
warnings.warn("build_dir has no effect for absolute source paths")
dir = os.path.dirname(c_file) dir = os.path.dirname(c_file)
safe_makedirs_once(dir) safe_makedirs_once(dir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment