Skip to content

macos arm64 support - #4

Merged
matthew-brett merged 6 commits into
MacPython:masterfrom
isuruf:arm64
Jan 23, 2021
Merged

matthew-brett merged 6 commits into
MacPython:masterfrom
isuruf:arm64

Conversation

@isuruf

@isuruf isuruf commented Jan 19, 2021

Copy link
Copy Markdown
Contributor

No description provided.

@isuruf

isuruf commented Jan 21, 2021

Copy link
Copy Markdown
Contributor Author

ping @matthew-brett, @mattip, @rgommers

Comment thread gfortran_utils.sh Resolved

@matthew-brett matthew-brett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few immediate thoughts.

Comment thread gfortran_utils.sh Resolved
Comment thread gfortran_utils.sh Outdated
sudo tar -xvf gfortran-darwin-arm64.tar.gz
sudo rm gfortran-darwin-arm64.tar.gz
popd
export FC_ARM64="/opt/gfortran-darwin-arm64/bin/arm64-apple-darwin20.0.0-gfortran"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any way of getting this path more automatically? Or generalizing so we don't have to change it with other releases?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since the archive is checked into the repo, this won't change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Well - sorry - I'm not saying it's necessarily a good idea to check it into the repo - if there is some other way to guarantee that we can get exactly that binary from something similar to version control elsewhere, that would be just as good.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reverted back to the URL and added a shasum check.

Comment thread gfortran_utils.sh Resolved

@matthew-brett matthew-brett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few more.

Comment thread gfortran_utils.sh Resolved
Comment thread gfortran_utils.sh Outdated
sudo tar -xvf gfortran-darwin-arm64.tar.gz
sudo rm gfortran-darwin-arm64.tar.gz
popd
export FC_ARM64="/opt/gfortran-darwin-arm64/bin/arm64-apple-darwin20.0.0-gfortran"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Well - sorry - I'm not saying it's necessarily a good idea to check it into the repo - if there is some other way to guarantee that we can get exactly that binary from something similar to version control elsewhere, that would be just as good.

Comment thread gfortran_utils.sh Outdated
GFORTRAN_SHA="$(shasum $GFORTRAN_DMG)"

function install_arm64_cross_gfortran {
curl -L -O https://github.com/isuruf/gcc/releases/download/gcc-10-arm-20210112/gfortran-darwin-arm64.tar.gz

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Right - but just to check - do you think we can depend on this curl command working for the next few years?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We can also make a release in MacPython/gfortran-install and attach it there.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, maybe that would be the best way.

@matthew-brett

Copy link
Copy Markdown
Contributor

@mattip - any thoughts?

@mattip

mattip commented Jan 23, 2021

Copy link
Copy Markdown
Contributor

Does it make any difference to CI performance if the file is part of this repo or if it is downloaded from a github release URL? In my mind I would hop somehow subrepos can be cached, but the URL must be fetched each run, but I don't know if this intuition is true or not.

@isuruf

isuruf commented Jan 23, 2021

Copy link
Copy Markdown
Contributor Author

No, downloading took 2 seconds on github actions for me.

@mattip

mattip commented Jan 23, 2021

Copy link
Copy Markdown
Contributor

Cool. Then LGTM.

@matthew-brett
matthew-brett merged commit 2644c04 into MacPython:master Jan 23, 2021
@matthew-brett

Copy link
Copy Markdown
Contributor

Thanks @isuruf

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.

3 participants