Skip to content

Get rid of build shell scripts and move them to Python#6082

Merged
edoakes merged 29 commits intoray-project:masterfrom
mehrdadn:master
Jul 16, 2020
Merged

Get rid of build shell scripts and move them to Python#6082
edoakes merged 29 commits intoray-project:masterfrom
mehrdadn:master

Conversation

@mehrdadn
Copy link
Copy Markdown
Contributor

@mehrdadn mehrdadn commented Nov 4, 2019

Why are these changes needed?

  • Wheel building on Windows has unexpected behavior when invoked from MSYS2 Bash, as it alters the environment when calling Bazel.

  • Bazel is aiming to get rid of the MSYS2 dependency on Windows; it's best to stick with Python.

Checks

@mehrdadn mehrdadn force-pushed the master branch 5 times, most recently from 80fc5f1 to 003890a Compare November 4, 2019 19:44
Copy link
Copy Markdown
Collaborator

@edoakes edoakes left a comment

Choose a reason for hiding this comment

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

This is a good idea but this script is extremely hard to understand, and maintainability is a top priority. Please see my comments and try to clean it up generally and I will take another look. Also, adding comments that explain the windows-specfic behavior anywhere that it's non-obvious would be great.

@mehrdadn
Copy link
Copy Markdown
Contributor Author

mehrdadn commented Nov 5, 2019

This is a good idea but this script is extremely hard to understand, and maintainability is a top priority. Please see my comments and try to clean it up generally and I will take another look. Also, adding comments that explain the windows-specfic behavior anywhere that it's non-obvious would be great.

@edoakes: It actually turns out I thought this script is supposed to be run directly by users, but @pcmoritz mentioned that it's actually only supposed to be run from setup.py, generally via pip. That fundamentally changes what I thought the script is be responsible for, and it means I should take out a lot of the things that don't make sense inside a pip installation (like handling of system packages). I'll move the relevant parts into setup.py and update the PR.

@mehrdadn
Copy link
Copy Markdown
Contributor Author

@pcmoritz I just moved things to setup.py. Could you let me know (or just fill in yourself) what should be in place of the previous build.sh calls (see the TODOs)?

@pcmoritz
Copy link
Copy Markdown
Contributor

This looks really great, thanks for doing it!

Copy link
Copy Markdown
Collaborator

@edoakes edoakes left a comment

Choose a reason for hiding this comment

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

Nice, much simpler now. Some more style feedback.

@mehrdadn mehrdadn marked this pull request as ready for review November 17, 2019 22:36
@mehrdadn
Copy link
Copy Markdown
Contributor Author

mehrdadn commented Nov 18, 2019

@pcmoritz @edoakes I think this should be ready for merge, though I'm not entirely sure why the build is failing (it seems unrelated as far as I can tell). Can you verify and merge if it seems correct?

@edoakes
Copy link
Copy Markdown
Collaborator

edoakes commented Nov 19, 2019

The python tests are unrelated but the linter is failing:
https://travis-ci.com/ray-project/ray/jobs/257550768

You should be able to run ./ci/travis/format.sh to lint locally. You can also run ./setup_hooks.sh to set up a github push hook that will run the linter before pushing code to the remote repo.

@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
@ray-project ray-project deleted a comment from AmplabJenkins Jun 30, 2020
Copy link
Copy Markdown
Collaborator

@edoakes edoakes left a comment

Choose a reason for hiding this comment

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

Looks pretty good. My chief complaint is that I found download_pickle5 extremely hard to follow - any way to make that a bit more clear at the cost of verbosity?

@AmplabJenkins
Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/28408/
Test FAILed.

@AmplabJenkins
Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/28422/
Test FAILed.

This was referenced Jul 16, 2020
@mboisson
Copy link
Copy Markdown

mboisson commented Aug 24, 2022

This PR made it impossible to build from source using pip:

Collecting https://github.com/ray-project/ray/archive/ray-2.0.0.tar.gz
  Downloading https://github.com/ray-project/ray/archive/ray-2.0.0.tar.gz
     \ 48.6 MB 13.2 MB/s 0:00:03
ERROR: https://github.com/ray-project/ray/archive/ray-2.0.0.tar.gz does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants