distutils bdist_wininst failure on Linux

Bob Bowles bobjohnbowles at gmail.com
Mon Aug 6 12:13:46 CEST 2012


Steven D'Aprano-11 wrote
> 
> And I have a work-around that seems to work for me. Put this at the top 
> of your setup.py install script:
> 
> 
> 
> # Work around mbcs bug in distutils.
> # http://bugs.python.org/issue10945
> import codecs
> try:
>     codecs.lookup('mbcs')
> except LookupError:
>     ascii = codecs.lookup('ascii')
>     func = lambda name, enc=ascii: {True: enc}.get(name=='mbcs')
>     codecs.register(func)
> 
> 
Nice one, worked first time! Thanks!



--
View this message in context: http://python.6.n6.nabble.com/distutils-bdist-wininst-failure-on-Linux-tp4498729p4984209.html
Sent from the Python - python-list mailing list archive at Nabble.com.


More information about the Python-list mailing list