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

Allow hooks for pip commands #857

Closed
adiroiban opened this issue Mar 23, 2013 · 1 comment
Closed

Allow hooks for pip commands #857

adiroiban opened this issue Mar 23, 2013 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation type: enhancement Improvements to functionality

Comments

@adiroiban
Copy link

I use pip for installing a targeted package, and pip is smart enough to look for dependencies and also install those dependencies.

It would be nice if some command (at least) install allow some sort of hook at install time and while source archive is already extracted.


It could help with creating a script to automate the license checking process. For example, it can raise a warning if pip installs a GPL package, but my code is BSD.


For deploying or delivering full functional applications (deskop/server/web) I would like to list all licenses for 3rd party libraries in an About/Legal page.
With a post/pre install hook I can look for LICENSE / AUTHORS files and automatically generate those pages or raise a warning if license was not found.

Thanks!

@dstufft
Copy link
Member

dstufft commented Mar 22, 2017

Closing this. I don't believe that pip is the right place for this kind of feature, something like GitHub status checks or similar is a way better mechanism for enforcement. In addition pip does not have a public API and adding something like this would require adding one.

@dstufft dstufft closed this as completed Mar 22, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 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 type: enhancement Improvements to functionality
Projects
None yet
Development

No branches or pull requests

2 participants