I'm trying to package up our code base for deployment. The package will also need to include all the dependency packages in requirements.txt. In the past what I did was setup a virtualenv for the project and package up the code base along with the virtualenv site-packages. I'm wondering if there's an easier way for me just to grab all the dependency in the requirements.txt and just package those along with theirs dependencies and my code base.
Thanks.
Thank you for all the comments and suggestions, I think I found what I'm looking for. I ended creating a temporary folder (pip install --target ./temp) where my script parses the requirements.txt and installs all the modules in there to the temporary folder. This gives me the isolation of all the modules and their dependencies that I needed.