Git Product home page Git Product logo

get-pip's Introduction

get-pip.py

get-pip.py is a bootstrapping script that enables users to install pip, setuptools, and wheel in Python environments that don't already have them. You should not directly reference the files located in this repository and instead use the versions located at https://bootstrap.pypa.io/.

Usage

$ curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python get-pip.py

Upon execution, get-pip.py will install pip, setuptools and wheel in the current Python environment.

It is possible to provide additional arguments to the underlying script. These are passed through to the underlying pip install command, and can thus be used to constraint the versions of the packages, or to pass other pip options such as --no-index.

$ python get-pip.py "pip < 21.0" "setuptools < 50.0" "wheel < 1.0"
$ python get-pip.py --no-index --find-links=/local/copies

get-pip.py options

This script also has it's own options, which control which packages it will install.

  • --no-setuptools: do not attempt to install setuptools.
  • --no-wheel: do not attempt to install wheel.

Development

You need to have a nox available on the CLI.

How it works

get-pip.py bundles a copy of pip with a tiny amount of glue code. This glue code comes from the templates/ directory.

Updating after a pip release

If you just made a pip release, run nox -s update-for-release -- <version>. This session will handle all the script updates (by running generate), commit the changes and tag the commit.

IMPORTANT: Check that the correct files got modified before pushing. The session will pause to let you do this.

Generating the scripts

Run nox -s generate.

Discussion

If you run into bugs, you can file them in our issue tracker.

You can also join #pypa or #pypa-dev on Freenode to ask questions or get involved.

Code of Conduct

Everyone interacting in the get-pip project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the PSF Code of Conduct.

get-pip's People

Contributors

benoit-pierre avatar chrahunt avatar dstufft avatar ewdurbin avatar hugovk avatar ivoz avatar jaraco avatar peternewman avatar pfmoore avatar pradyunsg avatar xavfernandez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.