Commit 1762be1f authored by Stefan Behnel's avatar Stefan Behnel

fix base path finding for in-place compilation

parent ee222536
......@@ -60,14 +60,13 @@ def find_package_base(path):
def cython_compile(path_pattern, options):
pool = None
paths = map(os.path.abspath, glob.iglob(path_pattern))
try:
for path in glob.iglob(path_pattern):
path = os.path.abspath(path)
for path in paths:
if options.build_inplace:
if is_package_dir(path):
base_dir = find_root_package_dir(path)
else:
base_dir = path
base_dir = path
while not os.path.isdir(base_dir) or is_package_dir(base_dir):
base_dir = os.path.dirname(base_dir)
else:
base_dir = None
......
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