Skip to content

Make feature TeXFile check latex first #34282

@soehms

Description

@soehms

Currently, as observed in comment 7 of #34185, the method is_present of instances of class TeXFile runs into an exception if latex is not installed. For example:

sage: from sage.features.latex import LaTeXPackage
sage: LaTeXPackage("tkz-graph").is_present()
Traceback (most recent call last):
...
FileNotFoundError: [Errno 2] No such file or directory: 'kpsewhich'

The aim of the ticket is to fix this.

CC: @seblabbe

Component: doctest framework

Keywords: latex texfile feature

Author: Sebastian Oehms, Kwankyu Lee

Branch/Commit: a77ff0c

Reviewer: Kwankyu Lee, Sebastian Oehms

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions