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

chore: fix Python build of s3-deployent on macOS #1141

Merged
merged 2 commits into from
Nov 12, 2018
Merged

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Nov 10, 2018

On macOS developers are likely to use a Homebrew Python,
which comes with a default pip installation prefix configured.

On those systems, running 'pip install --target' leads to the following
error:

DistutilsOptionError: must supply either home or prefix/exec-prefix — not both

Use --prefix to override the install prefix, then move the installed packages
to the target location.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

On macOS developers are likely to use a Homebrew Python,
which comes with a default pip installation prefix configured.

On those systems, running 'pip install --target' leads to the following
error:

DistutilsOptionError: must supply either home or prefix/exec-prefix — not both

Override the system prefix to be empty, and just force
pip to install in the given directory.
@rix0rrr
Copy link
Contributor Author

rix0rrr commented Nov 10, 2018

@dstufft this is as far as my understanding goes, but it's fuzzy. Is my reasoning correct or is this "fix" wrong?

@rix0rrr rix0rrr closed this Nov 10, 2018
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

Nice

@rix0rrr rix0rrr reopened this Nov 11, 2018
@rix0rrr rix0rrr merged commit c5fd907 into master Nov 12, 2018
@rix0rrr rix0rrr deleted the huijbers/pip-install branch November 12, 2018 13:00
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants