-
Notifications
You must be signed in to change notification settings - Fork 10
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
Install instructions for ARM-based Macs #16
Conversation
On ARM Macs (M1, M2) it is better to avoid the MKL library.
Added installation instructions for ARM-based Macs, including a dedicated environment-M1.yml file.
- conda-forge | ||
dependencies: | ||
- python>=3.7.7, <=3.9.12 # This restriction can be removed as soon as these packages support Python 3.10 | ||
#- mkl>=2020.2 ## this fails on M1 Mac: "ResolvePackageNotFound: - mkl[version='>=2020.2']" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#- mkl>=2020.2 ## this fails on M1 Mac: "ResolvePackageNotFound: - mkl[version='>=2020.2']" | |
#- openssl=1.1.1 #to ensure compatibility with the UN Population API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To address an incompatibility with openssl version 3
Discussion here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SeaCelo. Let's update the name of the environment-M1.yml
in line 1 to ogzaf-M1-dev
.
- mkl>=2020.2 | ||
- numpy<=1.21.2 # This restriction can be removed as soon as Numba supports NumPy 1.22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- mkl>=2020.2 | |
- numpy<=1.21.2 # This restriction can be removed as soon as Numba supports NumPy 1.22 | |
- mkl>=2020.2 | |
- openssl=1.1.1 # To ensure compatibility with the UN Population API | |
- numpy<=1.21.2 # This restriction can be removed as soon as Numba supports NumPy 1.22 |
@@ -0,0 +1,34 @@ | |||
name: ogzaf-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: ogzaf-dev | |
name: ogzaf-M1-dev |
@SeaCelo. Great. This looks ready to merge. |
This PR:
environment-M1.yml
file that has the correct dependencies needed for installing on ARM Macs, as described in this comment.mkl
dependency, and 2) install theogcore
dependency as a separate step.This solves #15