enable icon indicating copy to clipboard operation
enable copied to clipboard

Kiva build failing on Mac M2

Open capn-freako opened this issue 1 year ago • 3 comments

I'm getting a Kiva build failure on my MacBook Air M2 (MacOS 12.7.1):

File: /private/var/folders/pf/9gjf96y54f55tdz0vt0wq4kh0000gn/T/pip-install-78pd22fa/enable_d6b6869f6bbd44439ebdfc9c30a63ab0/kiva/_marker_renderer.pxd
        tree = Parsing.p_module(s, pxd, full_module_name)

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      # Thanks for using Enthought open source!
      import cython
      import numpy as np
      from numpy cimport uint8_t

      cimport _marker_renderer
              ^
      ------------------------------------------------------------

      kiva/_marker_renderer.pyx:14:8: '_marker_renderer.pxd' not found

Under conda-build I'm able to get past this, by back-reving Pip to v22. But, under pip install this trick doesn't work.

Any suggestions on how to make forward progress, or do further debugging?

The build completes successfully on the other 3 major platforms:

  • Windows 10 64-bit,
  • Linux 64-bit, and
  • MacOS Intel.

capn-freako avatar Dec 20 '23 12:12 capn-freako

I think the answer to this is don't use Cython 3: #1060

There should be Apple Silicon compatible wheels on PyPI, so you ought to be able to install without needing to build for the most recent releases (ie. pip install should just work without any build step)

corranwebster avatar Dec 22 '23 10:12 corranwebster

I think they’re there for Intel Macs, but missing for M1/M2 Macs. -db

On Dec 22, 2023, at 5:56 AM, Corran Webster @.***> wrote:

There should be Apple Silicon compatible wheels on PyPI

capn-freako avatar Dec 22 '23 12:12 capn-freako

That's correct. The 6.0.0 release on PyPI does not currently supply Apple Silicon-compatible wheels, only Intel-compatible wheels.

jwiggins avatar Dec 22 '23 12:12 jwiggins