Commits

Anthony Tuininga committed 6079e67

Fix calculation of file name as in Python 3.2 a longer extension is added to
modules.

Comments (0)

Files changed (1)

                 name)
         if name.endswith("util"):
             return fileName
+        vars = distutils.sysconfig.get_config_vars()
+        soExt = vars["SO"]
         ext = self.compiler.exe_extension or ""
-        return os.path.splitext(fileName)[0] + ext
+        return fileName[:-len(soExt)] + ext
 
 
 class build_scripts(distutils.command.build_scripts.build_scripts):