You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build a pex file with several requirements and my own package that has a setup.py.
From reading pex --help, I understand that I need to use the -s to provide the directory that contains my setup.py file.
I get this error:
pex -s . -e greatpackage.script -o output.pex
**** Failed to install greatpackage-0.1. stdout:
**** Failed to install greatpackage-0.1. stderr:
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
IOError: [Errno 2] No such file or directory: 'setup.py'
Traceback (most recent call last):
File "/Users/bqm/garbage/reproducible/env/bin/pex", line 9, in <module>
load_entry_point('pex==0.8.4', 'console_scripts', 'pex')()
File "/Users/bqm/garbage/reproducible/env/lib/python2.7/site-packages/pex/bin/pex.py", line 325, in main
pex_builder = build_pex(args, options)
File "/Users/bqm/garbage/reproducible/env/lib/python2.7/site-packages/pex/bin/pex.py", line 303, in build_pex
cache_ttl=options.cache_ttl)
File "/Users/bqm/garbage/reproducible/env/lib/python2.7/site-packages/pex/resolver.py", line 229, in resolve
new_requirements.update(requires(highest_package, requirement))
File "/Users/bqm/garbage/reproducible/env/lib/python2.7/site-packages/pex/resolver.py", line 201, in requires
raise Untranslateable('Package %s is not translateable.' % package)
pex.resolver.Untranslateable: Package SourcePackage('file:///Users/bqm/.pex/build/greatpackage-0.1.tar.gz') is not translateable.
I have not dug into pip code to see how it special cases for this, but pex -s does not auto-include setup.py so you'll need a MANIFEST. Additionally, instead of installing wheel, you just need to --no-wheel for now.
Hello,
I am trying to build a pex file with several requirements and my own package that has a setup.py.
From reading pex --help, I understand that I need to use the -s to provide the directory that contains my setup.py file.
I get this error:
Here is a way to reproduce my error:
Am I missing something? What am I doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: