How do I configure pip inside a virtualenv to install packages to the current directory root?

Viewed 1237

I'm using the serverless framework with AWS Lambda. When using pip.conf with pip3.6, I'd like to set the "target-dir" to the 'current directory'.

Setting it to "." like so:

[global]
target = "."

doesn't work, because pip creates a new directory called "." in my virtualenv root, and proceeds to install stuff in there. I've tried without the quotes. I had also tried ./, but this creates a directory called .".

I'm using virtualenv (via venv with python3.6), but I need the packages to live in the root directory of the virtualenv when I install with pip, because of AWS Lambda's limitations.

1 Answers
Related