diff --git a/src/python/setup.py.cmake b/src/python/setup.py.cmake index a4713a9..2e79bca 100644 --- a/src/python/setup.py.cmake +++ b/src/python/setup.py.cmake @@ -60,7 +60,10 @@ if '${MAGNUM_BUILD_STATIC}' != 'ON': class TheExtensionIsAlreadyBuiltWhyThisHasToBeSoDamnComplicated(build_ext): def run(self): for ext in self.extensions: - shutil.copyfile(extension_paths[ext.name], self.get_ext_fullpath(ext.name)) + try: + shutil.copyfile(extension_paths[ext.name], self.get_ext_fullpath(ext.name)) + except shutil.SameFileError: + pass setup( name='magnum',