Skip to content
Snippets Groups Projects
Commit 4c287f69 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix the runtime

parent a12ca087
No related branches found
No related tags found
No related merge requests found
...@@ -202,11 +202,11 @@ class Multibuild: ...@@ -202,11 +202,11 @@ class Multibuild:
def for_cythonize(self, *args, **kwargs): def for_cythonize(self, *args, **kwargs):
if self.dont_snakehouse: if self.dont_snakehouse:
extensions = [] extensions = []
common_path = os.path.commonpath(self.pyx_files) len_to_sub = len(self.bootstrap_directory) + len(os.path.pathsep)
for pyx_file in self.pyx_files: for pyx_file in self.pyx_files:
file_name = pyx_file[len(common_path)+len(os.pathsep):-4] file_name = pyx_file[len_to_sub:-4].replace(os.pathsep, '.')
ext = Extension(file_name.replace(os.pathsep, '.'), ext = Extension(file_name,
[file_name]) [pyx_file], *args, **kwargs)
extensions.append(ext) extensions.append(ext)
return extensions return extensions
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment