+ if(os.name!='posix'):
+ # Copy the .lib file
+ fullname = self.get_ext_fullname(ext.name)
+ modpath = string.split(fullname, '.')
+ package = string.join(modpath[0:-1], '.')
+ base = modpath[-1]
+ if self.inplace:
+ # ignore build-lib -- put the compiled extension into
+ # the source tree along with pure Python modules
+ build_py = self.get_finalized_command('build_py')
+ package_dir = build_py.get_package_dir(package)
+ dstLib=package_dir
+ else:
+ dstLib=self.build_lib
+
+ srcLib=os.path.join(self.build_temp,base+".lib")
+ dstLib=os.path.join(dstLib,package)
+
+ copy_file(srcLib,dstLib)
+