Skip to content

Simplify pip install step of install_requirements.sh #2731

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

Closed
wants to merge 1 commit into from

Conversation

dbort
Copy link
Contributor

@dbort dbort commented Mar 28, 2024

Summary:
It's not clear why we were using --force-reinstall; if the requested versions are different from what's currently installed, pip will handle the reinstallation.

And calling pip multiple times with --force-reinstall meant that we were uninstalling and reinstalling the same packages over and over.

Now we only call pip install once for requirements, and we do not force reinstall. On my machine, without enabling pybindings, a no-op run of this script (i.e. when all packages are up-to-date) takes 7 seconds, including the pip install ..

Test Plan:

./install_requirements.sh

Reviewers:

Subscribers:

Tasks:

Tags:

Copy link

pytorch-bot bot commented Mar 28, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2731

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit c4f93f8 with merge base f7fbc7a (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 28, 2024
@facebook-github-bot
Copy link
Contributor

@dbort has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@dbort dbort force-pushed the min-install branch 2 times, most recently from 57c878e to 4bf524a Compare March 28, 2024 01:11
@facebook-github-bot
Copy link
Contributor

@dbort has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@dbort has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@dbort has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@dbort has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@dbort has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
It's not clear why we were using --force-reinstall; if the requested
versions are different from what's currently installed, pip will handle
the reinstallation.

And calling pip multiple times with --force-reinstall meant that we were
uninstalling and reinstalling the same packages over and over.

Now we only call `pip install` once for requirements, and we do not
force reinstall. On my machine, without enabling pybindings, a no-op run
of this script (i.e. when all packages are up-to-date) takes 7 seconds,
including the `pip install .`.

Test Plan:
```
./install_requirements.sh
```

Reviewers:

Subscribers:

Tasks:

Tags:
@facebook-github-bot
Copy link
Contributor

@dbort has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@dbort merged this pull request in 45c2557.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants