pypa / get-pip

Helper scripts to install pip, in a Python installation that doesn't have it.
https://bootstrap.pypa.io/pip/
MIT License
755 stars 297 forks source link

[Feature request] Generate get-pip.py from local pip wheel or local pip project #134

Closed Mark-Joy closed 2 years ago

Mark-Joy commented 2 years ago

Supposed I had a locally clone pip project, did some changes on the source code. Now, I want to generate get-pip.py from it. It would be great if generate. py can support this feature. Thank you.

pradyunsg commented 2 years ago

Why is this necessary? What would be the point of doing this?

Mark-Joy commented 2 years ago

I would like to use some simple customized pip features. So what I want to do is: generate get-pip.py from my local modified source or local wheel, host it on github/other host. wget and install when needed. Rather convenient feature, isn't it?

pradyunsg commented 2 years ago

I don’t think there’s much use of that feature for anyone else, especially not for pip maintainers. I don’t think adapting the generation logic that sits in this repository, to do what you want to, has much value for the people who maintain pip (who are the primary audience for the generation logic).

You’re welcome to fork this repository and modify the generate.py script to fit your needs. You’re already doing that for pip.