Pex: cannot meet all requirements

I am trying to package a python virtual environment using pex, but it seems I can not get rid of the error "Failed to satisfy all requirements ...". This is either me being the complete question about python newb, or ask me to help me figure out what these annoying requirements that pex cannot satisfy.

Here is the error message that I see:

(env-rba-deploy)my_machine:env-rba-deploy my_user$ pex -v --disable-cache -r <(pip freeze) -o foo.pex Could not satisfy all requirements for rba-deploy==1.6.0: rba-deploy==1.6.0 

The python code I'm trying to package is here:

enter image description here

My setup.py looks like this:

 #!/usr/bin/env python from distutils.core import setup setup(name='rba-deploy', version='v1.6.0', description='blah', author='Dude', author_email='blah', url='https://www.foo.bar.baz', package_dir = {'':'lib'}, packages=['rba','rba/response'] ) 

Here is a list of peaks and a pex version:

 (env-rba-deploy)my_computer:env-rba-deploy my_user$ pex --version pex 1.0.3 (env-rba-deploy)my_computer:env-rba-deploy my_user$ pip list pip (7.1.2) rba-deploy (1.6.0) setuptools (18.2) wheel (0.24.0) 

What am I missing?

+9
source share
1 answer

-r for requirements will try to download your package from pypi, but if you did not download it, it will not work.

Instead of pip freeze, just point to the setup.py directory using "." or './'

 pex -v --disable-cache -o foo.pex ./ 
+2
source

All Articles