Skip to content

cython spyx files -- cinclude, clib, issues #1994

@williamstein

Description

@williamstein

There are some issues with cython spyx files:

  1. There is still nothing in the documentation anywhere in sage about cinclude, clib, etc. Here's a hint:
Basically you put
# clang c
# clib  cblas
# cfile myfile.c
# cinclude "/usr/local/include"

Questions -- where can one put these? Must the # be there?
However this is documented, at a bare minimum typing

sage: cython?
sage: load?
sage: attach?

should give enough information to find docs that clearly explain this cinclude, etc. directives.

  1. Create a file a.pxi and a file b.pyx. Put one of the # directives in the .pxi file and include the pxi file in the pyx file. The directive is ignored. This caused a ton of confusion today.

CC: @malb @robertwb

Component: user interface

Reviewer: Jeroen Demeyer

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions