Uh oh!
There was an error while loading. Please reload this page.
[Build] Implement install_requirements.sh with Python - #4748
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4748
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit dd5b83e with merge base d3da92d ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
python3kgae
commented
Aug 16, 2024
Tested install_requirements.py under WSL and native Windows only. |
dbort
left a comment
There was a problem hiding this comment.
This is looking great! Thank you so much for taking the time to do this. It'll be great to reduce the duplication between windows and non-windows.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Move the details of install_requirements.sh into install_requirements.py. Then, call install_requirements.py from install_requirements.sh. This will avoid duplication when add Windows version of installing_requirements. This is for issue pytorch#4661.
dbort
left a comment
There was a problem hiding this comment.
Thanks for the update! This looks great. I'll try running it locally when I have a chance.
Uh oh!
There was an error while loading. Please reload this page.
dbort
commented
Aug 20, 2024
Worked for me on mac. I updated the PR summary with the steps that I followed. I'm waiting for jobs to finish, but I should be able to merge this soon. |
Uh oh!
There was an error while loading. Please reload this page.
dbort
commented
Aug 20, 2024
Undid the nightly string change at @lucylq's request; we're not ready to bump it yet. |
dbort
commented
Aug 20, 2024
I just removed the date-changing commit from this PR, going back to a previous state that's already been tested. Merging. |
dbort
commented
Aug 20, 2024
Thank you again for doing this @python3kgae! This is something we've wanted to do for a while, and it really helps cut down on the duplication when making it work for Windows. |
python3kgae
commented
Aug 21, 2024
Thank you for the review and testing. We are now closer to achieving a native Windows build. |
Move the details of install_requirements.sh into install_requirements.py. Then, call install_requirements.py from install_requirements.sh.
This will avoid duplication when adding Windows version of installing_requirements.
This is for issue #4661.
Release Note: Moved the main install_requirements.sh logic into install_requirements.py so that it can also run on Windows.
Test Plan:
Tested on a mac.
Ran
./install_requirements.sh --pybind xnnpackunder python 3.10, and it completed successfully. To make sure that xnnpack was actually installed, I manually ran the steps from the notebook at https://colab.research.google.com/drive/1qpxrXC3YdJQzly3mRg-4ayYiOjC6rue3, and it passed.When running the same in a clean python 3.8 environment, it failed as expected with
Also tested under WSL and native Windows.