@@ -730,55 +730,6 @@ def _build_scintilla(self):
730
730
os .path .join (self .build_lib , "pythonwin" ),
731
731
)
732
732
733
- def _build_pycom_loader (self ):
734
- # the base compiler strips out the manifest from modules it builds
735
- # which can't be done for this module - having the manifest is the
736
- # reason it needs to exist!
737
- # At least this is made easier by it not depending on Python itself,
738
- # so the compile and link are simple...
739
- suffix = "%d%d" % (sys .version_info [0 ], sys .version_info [1 ])
740
- if self .debug :
741
- suffix += "_d"
742
- src = "com\\ win32com\\ src\\ PythonCOMLoader.cpp"
743
- build_temp = os .path .abspath (self .build_temp )
744
- obj = os .path .join (build_temp , os .path .splitext (src )[0 ] + ".obj" )
745
- dll = os .path .join (
746
- self .build_lib , "pywin32_system32" , "pythoncomloader" + suffix + ".dll"
747
- )
748
- if self .force or newer_group ([src ], obj , "newer" ):
749
- ccargs = [self .compiler .cc , "/c" ]
750
- if self .debug :
751
- ccargs .extend (self .compiler .compile_options_debug )
752
- else :
753
- ccargs .extend (self .compiler .compile_options )
754
- ccargs .append ("/Fo" + obj )
755
- ccargs .append (src )
756
- ccargs .append ('/DDLL_DELEGATE=\\ "pythoncom%s.dll\\ "' % (suffix ,))
757
- self .spawn (ccargs )
758
-
759
- deffile = "com\\ win32com\\ src\\ PythonCOMLoader.def"
760
- if self .force or newer_group ([obj , deffile ], dll , "newer" ):
761
- largs = [self .compiler .linker , "/DLL" , "/nologo" , "/incremental:no" ]
762
- if self .debug :
763
- largs .append ("/DEBUG" )
764
- temp_manifest = os .path .join (
765
- build_temp , os .path .basename (dll ) + ".manifest"
766
- )
767
- largs .append ("/MANIFESTFILE:" + temp_manifest )
768
- largs .append ("/PDB:None" )
769
- largs .append ("/OUT:" + dll )
770
- largs .append ("/DEF:" + deffile )
771
- largs .append (
772
- "/IMPLIB:"
773
- + os .path .join (build_temp , "PythonCOMLoader" + suffix + ".lib" )
774
- )
775
- largs .append (obj )
776
- self .spawn (largs )
777
- # and the manifest if one exists.
778
- if os .path .isfile (temp_manifest ):
779
- out_arg = "-outputresource:%s;2" % (dll ,)
780
- self .spawn (["mt.exe" , "-nologo" , "-manifest" , temp_manifest , out_arg ])
781
-
782
733
def lookupMfcInVisualStudio (self , mfc_version , mfc_libraries ):
783
734
# Looking for the MFC files in the installation paths of the Visual Studios
784
735
plat_dir_64 = "x64"
0 commit comments