Skip to content

Fix introspection with ? when doc source is not available #25786

@saraedum

Description

@saraedum

Currently, introspection does not work in conda and Arch Linux (if the sagemath-doc package is not installed):

sage: ZZ?
…
/usr/lib/python2.7/site-packages/sage/misc/sagedoc.pyc in process_extlinks(s, embedded)
    497     oldpath = sys.path
    498     sys.path = [os.path.join(SAGE_DOC_SRC, 'common')] + oldpath
--> 499     from conf import extlinks
    500     sys.path = oldpath
    501     for key in extlinks:

ImportError: cannot import name extlinks

The problem is that src/doc/common/conf.py is not in the place that Sage expects.

I don't think that we should require the documentation configuration to be installed for Sage to work.

A docker image to play with this is being built here: https://gitlab.com/sagemath/dev/sage/pipelines/25262253

Depends on #25843

CC: @antonio-rojas @jdemeyer @slel

Component: documentation

Keywords: conda, Arch Linux, introspection

Work Issues: is the patchbot happy?

Author: Julian Rüth, Isuru Fernando

Branch/Commit: a401a17

Reviewer: Julian Rüth, Isuru Fernando, François Bissey

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions