Added checks for python, bazel, pipenv for OS X#181
Added checks for python, bazel, pipenv for OS X#181chinmayshah99 merged 3 commits intoOpenMined:devfrom
Conversation
|
Works for me: Only issue I can see is there isn't any version requirements, and most of these things aren't hugely version dependant, but if there is a version bug later we will need to be careful to document it. Maybe mention some working versions in the README.md or contributing.md just in case? |
|
@madhavajay Is it possible in homebrew to specify which version to install? |
Yes we can do something like |
chinmayshah99
left a comment
There was a problem hiding this comment.
Specify the version number of each package during brew install
I use bazel |
|
Yeah, bazel 3.2 works. And python version as 3.7?
…On Mon, 8 Jun 2020 at 11:56, Saksham ***@***.***> wrote:
Specify the version number of each package during brew install
I use bazel 3.2.0 and python 3.8.3 , should I use this ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#181 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTTOFOE3HJXJKNVIEVX3G3RVSAAZANCNFSM4NRT4VYA>
.
--
Regards
Chinmay Shah
|
Doing it for bazel would be difficult, since we are tapping and using this https://github.com/bazelbuild/homebrew-tap/blob/master/Formula/bazel.rb. It has 3.2.0 set right now, for installing a specific version we would have to install it using a binary installer. Should we change, brew makes it really simple. |
|
As much as I love brew, I think the binaries for bazel are also really easy to use. Maybe take this and switch to the macOS binary release. I actually think it's perfectly sane to pull a specific pinned Bazel binary and call it from within the project dir so that we don't force the users to change their system path Bazel. With brew, the python versions should co-exist as different /usr/local/bin symlinks so that should also work by pinning to a version. The less invasive and more isolated and reliable the dev setup / code the better. |
|
Looks like there might be another way. It seems that the homebrew core is actually very up to date with bazel now: Lets try an older version for an example: This might at least help take care of other dependencies like OpenJDK, but in the end you will run into errors on upgrade etc. Completely and reliably automating the whole thing might not be worth the effort and testing required due to all the edge cases. Pulling a binary or using the .sh installer might be easier. |
@chinmayshah99 should we switch to the binary installer ? |
Yeah, let's shift to binary installer! |
For the binary installer, the
Our linux prereqs uses an older version of bazel, should we update just to be consistent ? |
For any other process, we don't need Xcode correct?
Yeah, we can move to bazel 3.2. But that needs to be tested and also on a separate PR. |
No we don't need Xcode for any other process, infact we don't need Xcode just xcode command line tools which can be done using |
|
How big is xcode-select --install?
Because from what I understand, Xcode takes up 10GB+ disk space.
…On Thu, 11 Jun 2020 at 02:57, Saksham ***@***.***> wrote:
For the binary installer, the Xcode command line tools need to be
installed first
For any other process, we don't need Xcode correct?
Our linux prereqs uses an older version of bazel, should we update just to
be consistent ?
Yeah, we can move to bazel 3.2. But that needs to be tested and also on a
separate PR.
No we don't need Xcode for any other process, infact we don't need Xcode
just xcode command line tools which can be done using xcode-select
--install . We can add a note to the contributing so that users are aware
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#181 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTTOFLL2ARUC7JIZRUKKR3RV73E3ANCNFSM4NRT4VYA>
.
--
Regards
Chinmay Shah
|
iirc it is around 700mb. |
|
Let's not use it then. Let's stick to brew in that case.
…On Thu, 11 Jun 2020 at 03:24, Saksham ***@***.***> wrote:
How big is xcode-select --install? Because from what I understand, Xcode
takes up 10GB+ disk space.
… <#m_-932386087617675897_>
iirc it is around 700mb.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#181 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTTOFOXBD6AEPFHA2KQIXDRV76HVANCNFSM4NRT4VYA>
.
--
Regards
Chinmay Shah
|
|
What if is check for |
Could add that but seems an overkill, brew is the best option imo.If bazel seems to remove backwards compatibility in some major version later, we could switch. |
|
Fair enough.
…On Thu, Jun 11, 2020, 17:52 Saksham ***@***.***> wrote:
What if is check for xcode-select --install and if it's present, use,
command line. Else use brew.
Could add that but seems an overkill, brew is the best option imo.If bazel
seems to remove backwards compatibility in some major version later, we
could switch.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#181 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTTOFNYIA2DQT6WYFHCBZDRWDEADANCNFSM4NRT4VYA>
.
|
Pull Request
Description
Added checks for python, bazel & pipenv for OS X, install them if they are not already present
Affected Dependencies
List any dependencies that are required for this change.
Type of Change
Please mark options that are relevant.
How has this been tested?
Checklist
Additional Context
Please also include relevant motivation and context.