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

Refine index priority order of pip install #1341

Open
jialeicui opened this issue Oct 11, 2022 · 0 comments
Open

Refine index priority order of pip install #1341

jialeicui opened this issue Oct 11, 2022 · 0 comments
Assignees

Comments

@jialeicui
Copy link
Contributor

Current Behavior
Merge all index URLs together and it may cause security issues.
ref: pypa/pip#8606

Proposed Behavior

Index = index-url or extra-index-url

There are 3 places to specify Index

  1. requirements.txt
  2. runtime.yaml
  3. Cluster ( configured in the controller)

Rules

  • Index in the front position has the higher priority.
  • Prefer using the current Index when installing packages.

e.g. When installing packages in runtime.yaml, use Index in runtime.yaml if configured, else: use Cluster Index

cc @tianweidut

@jialeicui jialeicui self-assigned this Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant