From 4c287f69311cb595ccec83c05384e7e2da836b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Sat, 19 Dec 2020 18:18:56 +0100 Subject: [PATCH] fix the runtime --- snakehouse/multibuild.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snakehouse/multibuild.py b/snakehouse/multibuild.py index 5ef09af..43b1723 100644 --- a/snakehouse/multibuild.py +++ b/snakehouse/multibuild.py @@ -202,11 +202,11 @@ class Multibuild: def for_cythonize(self, *args, **kwargs): if self.dont_snakehouse: 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: - file_name = pyx_file[len(common_path)+len(os.pathsep):-4] - ext = Extension(file_name.replace(os.pathsep, '.'), - [file_name]) + file_name = pyx_file[len_to_sub:-4].replace(os.pathsep, '.') + ext = Extension(file_name, + [pyx_file], *args, **kwargs) extensions.append(ext) return extensions else: -- GitLab