Menu

#447 docutils-cli.py not available when installing via pip

closed-fixed
nobody
None
5
2022-07-06
2022-04-21
No

This might not be an actual bug, but the behavior is surprising, and the documentation lead me to believe that docutils-cli.py should be available regardless of installation method.

I created a new virtual environment with Python 3.8.3. With the virtual environment active, I updated to the latest version of pip, then installed docutils.

I then tried to run docutils-cli.py but the command could not be found. Other tools were available, such as rst2html.py.

Related

Feature Requests: #88

Discussion

  • Günter Milde

    Günter Milde - 2022-04-29

    This might not be an actual bug, but the behavior is surprising, and
    the documentation lead me to believe that docutils-cli.py should be
    available regardless of installation method.

    ... the command could not be found.
    Other tools were available, such as rst2html.py.

    The reason is a missing entry in the package_data['scripts'] list
    in setup.py. This is an oversight during the recent addition of this tool.

    There are plans, to overhoul the front-end tool naming and installation using
    "entry points" (that allow automatic installation and leaving out the ".py"
    extension also on Windows). See also [feature-requests:#88].
    In the course of this changes, the generic front-end tool
    could/should be renamed from docutils-cli.py to docutils.
    We may consider using the new name (and entry-point) already in 0.19.

    Thank you for reporting.

     
    👍
    1

    Related

    Feature Requests: #88


    Last edit: Günter Milde 2022-05-03
  • Günter Milde

    Günter Milde - 2022-05-30
    • status: open --> open-fixed
     
  • Günter Milde

    Günter Milde - 2022-05-30

    Fixed in [r9061].
    Installing the "docutils" package (>= 0.19.dev) with pip or setuptools will also install
    the docutils CLI command.

    Thank you for reporting.

     

    Related

    Commit: [r9061]

  • Günter Milde

    Günter Milde - 2022-07-06
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB