Probably. This is likely worthy of a bug against p...
# general
Probably. This is likely worthy of a bug against pex, but it's also really not ideal:
Copy code
$ pex apache-airflow==1.10.0
**** Failed to install apache-airflow-1.10.0 (caused by: NonZeroExit("received exit code 1 during execution of `['/usr/bin/python3.7', '-', 'bdist_wheel', '--dist-dir=/tmp/tmp9oz6r7sr']` while trying to execute `['/usr/bin/python3.7', '-', 'bdist_wheel', '--dist-dir=/tmp/tmp9oz6r7sr']`")

Traceback (most recent call last):
  File "<stdin>", line 9, in <module>
  File "", line 124
    async = [
SyntaxError: invalid syntax

Traceback (most recent call last):
  File "/home/jsirois/.venv/pex/bin/pex", line 11, in <module>
  File "/home/jsirois/.venv/pex/lib/python3.7/site-packages/pex/bin/", line 735, in main
    pex_builder = build_pex(reqs, options, resolver_options_builder)
  File "/home/jsirois/.venv/pex/lib/python3.7/site-packages/pex/bin/", line 664, in build_pex
    for resolved_dist in resolveds:
  File "/home/jsirois/.venv/pex/lib/python3.7/site-packages/pex/", line 566, in resolve_multi
  File "/home/jsirois/.venv/pex/lib/python3.7/site-packages/pex/", line 502, in resolve
    return resolver.resolve(resolvables_from_iterable(requirements, builder))
  File "/home/jsirois/.venv/pex/lib/python3.7/site-packages/pex/", line 300, in resolve
    dist =, resolvable.options)
  File "/home/jsirois/.venv/pex/lib/python3.7/site-packages/pex/", line 379, in build
    dist = super(CachingResolver, self).build(package, options)
  File "/home/jsirois/.venv/pex/lib/python3.7/site-packages/pex/", line 258, in build
    raise Untranslateable('Package %s is not translateable by %s' % (package, translator))
pex.resolver.Untranslateable: Package SourcePackage('file:///home/jsirois/.pex/build/apache-airflow-1.10.0.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
It would really help to have a working legit failure repro case.