Skip to content

Commit

Permalink
src/sage/plot/plot3d/meson.build: depend on interpreters
Browse files Browse the repository at this point in the history
The file parametric_surface.pyx cimports Wrapper_rdf from
sage.ext.interpreters.wrapper_rdf. If the interpreters have not yet
been built, the build can fail here. We split parametric_surface.pyx
from the other plot3d extensions, and add the extra dependency only
for the extension (parametric_surface.pyx) that needs it.
  • Loading branch information
orlitzky committed Oct 14, 2024
1 parent 3c61736 commit 0b82587
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/sage/plot/plot3d/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ extension_data = {
'base' : files('base.pyx'),
'implicit_surface' : files('implicit_surface.pyx'),
'index_face_set' : files('index_face_set.pyx'),
'parametric_surface' : files('parametric_surface.pyx'),
'shapes' : files('shapes.pyx'),
'transform' : files('transform.pyx'),
}
Expand All @@ -35,3 +34,12 @@ foreach name, pyx : extension_data
)
endforeach

# This extension needs the interpreters, but the others don't.
py.extension_module(
'parametric_surface',
sources: files('parametric_surface.pyx'),
subdir: 'sage/plot/plot3d',
install: true,
include_directories: [inc_cpython, inc_ext, inc_numpy],
dependencies: [py_dep, cysignals, gmp, interpreters_dep],
)

0 comments on commit 0b82587

Please sign in to comment.