Skip to content

Issues building from source #229

@dlakaplan

Description

@dlakaplan

Hi. I am trying to build this from source so I can explore nanograv/PINT#1944 without waiting for new pypi or conda releases. However, I cannot follow the instructions at https://github.com/numpy/numpy-user-dtypes/tree/main/quaddtype#installation-from-source. Some of the issues may just be missing steps in the instructions, others appear more challenging:

  • The instructions do not say that meson is needed, although that is an easy fix
  • The instructions do not say that sleef is needed. I tried to install that from conda, we'll see if that works
  • I am not sure how to install the sleefquad library. I get:
  Run-time dependency sleef found: YES 3.9.0
  Library sleefquad found: NO
  ../meson.build:65: WARNING: Falling back to SLEEF subproject: sleefquad library is missing

and I don't know if this is a problem or not. I cannot find a separate source for sleefquad, so this may be a problem with how I installed sleef

  • The instructions say both pip install numpy pytest and NumPy >= 2.4 (build from source) which seem incompatible. When I try to build I get many errors like:
  ../numpy_quaddtype/src/dtype.c:210:14: error: use of undeclared identifier 'NPY_CONSTANT_zero'
    210 |         case NPY_CONSTANT_zero:
        |              ^

which makes it look like it's missing a include file or some other source file.

Can you help with this? How should sleef and numpy be installed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions