Skip to content

[3.13] gh-133503: clarify compileall -s/-p docs (GH-134756) #134996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Doc/library/compileall.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,18 @@ compile Python sources.
executed.

.. option:: -s strip_prefix

Remove the given prefix from paths recorded in the ``.pyc`` files.
Paths are made relative to the prefix.

This option can be used with ``-p`` but not with ``-d``.

.. option:: -p prepend_prefix

Remove (``-s``) or append (``-p``) the given prefix of paths
recorded in the ``.pyc`` files.
Cannot be combined with ``-d``.
Prepend the given prefix to paths recorded in the ``.pyc`` files.
Use ``-p /`` to make the paths absolute.

This option can be used with ``-s`` but not with ``-d``.

.. option:: -x regex

Expand Down
Loading