Mingw-packages: Use windmc in distutils for Python 3

Created on 29 Jul 2019  路  5Comments  路  Source: msys2/MINGW-packages

While trying to build the pywin32 package on Python 3, I get this error:

error: unknown file type '.mc' (from 'win32/src/PerfMon/PyPerfMsgs.mc')

It appears that the Python 2 package patches distutils and handles .mc files via windmc from binutils. Python 3, however, does not.

python

Most helpful comment

oh forgot about it. Will fix

All 5 comments

Sounds like a good idea.

@Alexpux what about this part of the py2 patch

             ext_normcase = os.path.normcase(ext)
             if ext_normcase in ['.rc','.res']:
                 ext = ext_normcase
-            if ext not in (self.src_extensions + ['.rc','.res']):
+            if ext not in (self.src_extensions + ['.rc', '.res', '.mc']):
                 raise UnknownFileError, \
                       "unknown file type '%s' (from '%s')" % \
                       (ext, src_name)

Is it not needed?

oh forgot about it. Will fix

Was this page helpful?
0 / 5 - 0 ratings