Skip to content

setup.py docs does not work #142

@Moritz90

Description

@Moritz90

After creating a new project with pyscaffold, I tried to run python setup.py docs. This was the result:

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: invalid command 'build_sphinx'

I then tried running python setup.py build_sphinx directly, but this failed as well (output anonymized):

running build_sphinx
Running Sphinx v1.7.0b2
usage: usage: setup.py [OPTIONS] -o <OUTPUT_PATH> <MODULE_PATH> [EXCLUDE_PATTERN, ...]
setup.py: error: unrecognized arguments: {$dir}/docs/../src/{$module}

Configuration error:
The configuration file (or one of the modules it imports) called sys.exit()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions