I am trying to use AWS Lambda to do an introspection of a python package.
What I'm trying to do is press git push, check the package, install its dependencies (package dependencies for introspection) and run the toolkit. AWS does not have a protocol installed by default (you must bind your own dependencies), so I build pip using my lambda function.
Every other part of my lambda works, except for trying to install package dependencies. When trying to use my package package with an unloaded package, it does not try to run setuptools:
Collecting alembic==0.8.3 (from -r /tmp/tmpnx0tY0/requirements.txt (line 1)) Downloading alembic-0.8.3.tar.gz (935kB) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named setuptools ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/tmp30m2KN/alembic
I tried everything: add the current path (using setuptools) to the path, copy setuptools to the temp directory, run pip install setuptools , passing parameters using --global-options , trying pOpen with env, specifying PYTHONPATH , even tried using older versions pip with: pip install -r requirements.txt --download --no-install . Nothing seems to work.
How can I get this python setup.py egg_info call python setup.py egg_info to successfully find setuptools?
source share