这是indexloc提供的服务,不要输入任何密码
Skip to content

blacklist pythontex in the buildsystem #708

@zuntrax

Description

@zuntrax

Pythontex is some kind of a python interpreter bundled with texlive. CMake finds it, but it's not suitable for what we are doing (obviously). We should blacklist it to get rid of clutter in the configure output. Also the "dropping invalid python interpreter" message (for the remaining possible cases) should not be a warning, but a normal message without modifiers.

Configure output
[...]
Testing /usr/bin/python3
Testing /usr/bin/python3.6
Testing /usr/bin/python2.7
Testing /usr/bin/python3.6m
Testing /usr/share/texmf-dist/scripts/pythontex/pythontex.py
usage: pythontex.py [-h] [--version] [--encoding ENCODING]
                    [--error-exit-code {true,false}] [--runall [{true,false}]
                    | --rerun {never,modified,errors,warnings,always}]
                    [--hashdependencies [{true,false}]] [-j N] [-v]
                    [--interpreter INTERPRETER]
                    [--debug [::] | --interactive
                    [::]]
                    TEXNAME
pythontex.py: error: unrecognized arguments: -c
CMake Warning at buildsystem/modules/FindPython.cmake:149 (message):
  Dropping invalid python interpreter
  '/usr/share/texmf-dist/scripts/pythontex/pythontex.py'
Call Stack (most recent call first):
  buildsystem/HandlePythonOptions.cmake:6 (find_package)
  CMakeLists.txt:69 (include)
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: buildsystemRelated to our cmake/python buildsystemgood first issueSuitable for newcomersimprovementEnhancement of an existing componentjust do itYou can start working on this, there should be nothing left to discuss

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions