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

[internal] Preprocesses python bootstrap search paths to check for invalid settings #17041

Merged

Conversation

chrisjrn
Copy link
Contributor

Per discussion in #16800, we're OK with using direct filesystem access to support pyenv support (and separately, asdf support) for local runtime environments only. This adds a preprocessing function that supports:

  • no-opping for local/undefined environments
  • handling the case where the search paths are unaltered from the default, by stripping out unsupported search paths
  • raising an exception with fixing instructions if unsupported search paths are requested for remote/docker environments

n.b. PythonBootstrap is still incorrectly cached for pyenv users, and that will be addressed in one (hopefully) final PR.

Christopher Neugebauer added 3 commits September 28, 2022 09:00
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@chrisjrn chrisjrn added the category:internal CI, fixes for not-yet-released features, etc. label Sep 28, 2022
@chrisjrn chrisjrn marked this pull request as ready for review September 28, 2022 18:08
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Great!

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@chrisjrn chrisjrn enabled auto-merge (squash) September 28, 2022 22:38
@chrisjrn chrisjrn merged commit d5dc1a1 into pantsbuild:main Sep 28, 2022
@chrisjrn chrisjrn deleted the chrisjrn/16800-preprocess-search-paths branch September 28, 2022 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants