diff --git a/distutils_rust/__init__.py b/distutils_rust/__init__.py --- a/distutils_rust/__init__.py +++ b/distutils_rust/__init__.py @@ -75,6 +75,11 @@ def get_temp_output(self, ext): """Returns the location in the temp directory of the output file.""" platform = distutils.util.get_platform() + if platform.startswith('win-'): + libsuffix = '.dll' + return os.path.join('debug' if self.debug else 'release', + ext.name + libsuffix) + if platform.startswith('macosx'): libsuffix = '.dylib' else: