Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --target installations with pip freeze #6404

Closed
lkollar opened this issue Apr 12, 2019 · 0 comments · Fixed by #6450
Closed

Support --target installations with pip freeze #6404

lkollar opened this issue Apr 12, 2019 · 0 comments · Fixed by #6450
Labels
auto-locked Outdated issues that have been locked by automation C: freeze 'pip freeze' related type: enhancement Improvements to functionality

Comments

@lkollar
Copy link
Contributor

lkollar commented Apr 12, 2019

What's the problem this feature will solve?

List all dependencies with pip freeze which have been installed into an arbitrary directory with pip install --target.

Describe the solution you'd like

pip freeze should have a --target option and take a path to an installation path to work out the installed dependencies in that directory. It should probably also honour the --local flag and skip globally installed packages if specified, just like with virtualenvs, or implicitly disable global site altogether.

I would like to install an application's dependencies into a target directory and then generate a requirements.txt based on the installed packages. At the moment I can only do this if I install the dependencies with --user, inside a virtualenv or by globally installing them.

Alternative Solutions

As far as I know there is no alternative solution to resolve the transitive dependencies and generate a requirements.txt based on a target installation directory.

Additional context

@cjerdonek cjerdonek added C: freeze 'pip freeze' related type: enhancement Improvements to functionality labels May 7, 2019
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 27, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: freeze 'pip freeze' related type: enhancement Improvements to functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants