Skip to content
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

Native support for ARM Macs #159

Merged
merged 1 commit into from
Mar 16, 2021
Merged

Native support for ARM Macs #159

merged 1 commit into from
Mar 16, 2021

Conversation

smmaurer
Copy link
Member

@smmaurer smmaurer commented Mar 16, 2021

This PR updates the setup script to use setuptools in place of the older distutils, which on my test machine helped smooth out compilation on the new ARM-based Macs.

Together with PR #158, this brings full support to the dev branch for compilation on these machines. For initial writeup see issue #152.

(Note that it's not a problem to run older x86 Python packages, including Pandana, on ARM Macs. These updates are just to support native compilation, which will improve performance.)

How to compile natively on ARM Macs

  1. Install MiniForge for osx-arm64 (read, download).

  2. Install all of Pandana's build- and runtime requirements from Conda. Check the install messages to confirm you're getting osx-arm64 binaries. (If it's the normal osx-64 binaries instead, you're probably running an x86 copy of Conda.)

    conda install clang llvm-openmp cython numpy pandas scikit-learn pytables

  3. Compile and install Pandana.

    python setup.py develop

Next steps to provide ARM binaries on Conda Forge

  • merge this PR
  • release v0.6.1
  • open a PR adding Pandana to the list of packages for automated migration (instructions)
  • confirm and test
  • update install docs in README and sphinx

After that's completed, you'll be able to install Pandana for osx-arm64 directly from Conda.

@github-actions
Copy link

Test coverage is 90%

@smmaurer smmaurer merged commit 4cc4666 into dev Mar 16, 2021
@smmaurer smmaurer deleted the osx-arm64-v2 branch March 16, 2021 22:44
This was referenced Mar 17, 2021
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.

2 participants