Skip to content

Conversation

@menehune23
Copy link
Contributor

@menehune23 menehune23 commented Oct 13, 2021

Adds support for installing a version of pip that is independent of python, to be used for this buildpack's build logic. This PR adds only a single pip version to the manifest, which is selectable by setting $BP_PIP_VERSION=latest (env var named as such for easier potential extensibility -- e.g. adding more versions of pip to the manifest, selectable by version number). If this env var is empty/unset, nothing will be installed and python's own pip module will be used for the build.

Resolves #172
Resolves #171 (since the added version of pip contains wheel and setuptools)

  • I have viewed signed and have submitted the Contributor License Agreement
  • I have made this pull request to the develop branch
  • I have added an integration test

@menehune23 menehune23 requested a review from a team October 13, 2021 04:26
return err
}

if err := s.Command.Execute(s.Stager.BuildDir(), indentWriter(os.Stdout), indentWriter(os.Stderr),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we don't use Supplier.runPipInstall() here because we need to ensure that python's own pip module is used. Supplier.runPipInstall() would try to use the very version of pip we're installing here.

@menehune23 menehune23 changed the title 172 independent pip Support independent pip version Oct 13, 2021
Adds pip as a dependency to this buildpack. When BP_PIP_VERSION=latest, this version
will be used. When unset, python's own pip module will be used.
@menehune23 menehune23 marked this pull request as ready for review October 13, 2021 17:13
@arjun024
Copy link
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants