November 12, 2018

[Gentoo] dev-python/zstandard[python_targets_python2_7] can't be built on multilingual system

dev-vcs/mercurial depends on dev-python/zstandard[python_targets_python2_7], but it can't be built

>>> Compiling source in /var/tmp/portage/dev-python/zstandard-0.8.1/work/zstandard-0.8.1 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
python2.7 build
Traceback (most recent call last):
  File "", line 31, in <module>
    import make_cffi
  File "/var/tmp/portage/dev-python/zstandard-0.8.1/work/zstandard-0.8.1/", line 184, in <module>
  File "/usr/lib64/python2.7/site-packages/cffi/", line 107, in cdef
    self._cdef(csource, override=override, packed=packed)
  File "/usr/lib64/python2.7/site-packages/cffi/", line 118, in _cdef
    csource = csource.encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 73-84: ordinal not in range(128)

Encodes are the matter. Python 2.7 is not good at that.

By the way, Mercurial hg is still used? I don't use it mainly.

Of course I use Git you know. Maybe I am git also 😁

But some projects still use hg. Some use Bazaar...