-
Notifications
You must be signed in to change notification settings - Fork 657
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
R** move cmake installation into env_create.sh #2393
base: main
Are you sure you want to change the base?
Conversation
The change looks good. I've kicked off a CI run: https://gitlab.com/coremltools1/coremltools/-/pipelines/1544298967 |
Thanks for the CI run! Here's a link to the previous PR that I forgot to link: #2379 In that previous PR, there were some questions that had come up. I will link my response below:
This was a pure refactoring change. In In addition, if
Could you explain what "env-tweaking cases" are? Why can't the env-tweaking cases be done in the |
@YifanShenSZ - can respond to the above questions? I think since this change only installs cmake if it isn't already installed, it shouldn't matter which script installs it. |
I would like to clarify this. The change installs |
@TobyRoseman any update on this? |
I think the documentation changes for this PR are good. I would like to merge those changes. I don't think we should be installing I still don't understand why you want to move the cmake installation out of |
Awesome!
Here's my reasoning:
Would love to hear your reasoning about why to not install
Here's my reasoning: It's mainly due to the Single Responsibility Principle.
With the |
I had a previous PR for this, however, I had made some edits to my fork that closed the pull request and added commits from another feature I was working on. I guess that's a reminder to me to make new branches in git 😄 . Apologies for a duplicate PR. Here's the original description:
This PR simplifies the build setup process by installing
cmake
viaconda
.Current Behavior:
In the
build.sh
script, this if statement exists:If
cmake
does not exist on the machine used to buildcoremltools
, thencmake
will be installed viaconda
.BUILDING.md
states that the user needs to installcmake
. However, if thebuild
.sh script already installscmake
then the following refactor can be done:cmake
by default into theconda
environmentcmake
outside of thecoremltools
buildNew Behavior:
env_create.sh
script installscmake
via theanaconda
channel.cmake
themselves)This refactor makes it so that the user no longer needs to install
cmake
before buildingcoremltools
(as the build itself will installcmake
viaconda
)Checks
Running
./scripts/build.sh --python=3.8
created a working build for me locally, but I'm not sure how to run the GitLab CI job. Could I get some help on that? Thanks in advance 😄