Skip to content

sage.env.sage_include_directories: Remove hard dependency on numpy #31333

@mkoeppe

Description

@mkoeppe

(extracted from and needed for #29865)

sage_include_directories returns the basic list of include directories for compiling extensions, not including directories obtained through pkgconfig etc. This basic list includes directories supplied by numpy. This is fine for the monolithic Sage library because numpy is a standard package; but in the course of modularization, we will have various distributions that do not need the dependency on numpy.
We use try/expect around the import and call to numpy.

CC: @kiwifb @tobiasdiez

Component: refactoring

Author: Matthias Koeppe

Branch/Commit: 4550eb6

Reviewer: François Bissey

Issue created by migration from https://trac.sagemath.org/ticket/31333

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions