Skip to content

Prevent make venv from reporting success when it actually failed #1611

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 6 commits into from
Jul 19, 2025
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ venv:
.PHONY: ensure-venv
ensure-venv:
@if [ ! -d $(VENVDIR) ] ; then \
set -e; \
echo "Creating venv in $(VENVDIR)"; \
if $(UV) --version >/dev/null 2>&1; then \
$(UV) venv --python=$(PYTHON) $(VENVDIR); \
Expand Down
18 changes: 14 additions & 4 deletions documentation/start-documenting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,22 @@ To build the documentation, follow the steps in one of the sections below.
You can view the documentation after building the HTML
by opening the file :file:`Doc/build/html/index.html` in a web browser.

.. note::
Initial requirements
--------------------

Ensure your current working directory is the top level ``Doc/`` directory
inside your :ref:`CPython repository clone <checkout>`. You can switch to
it with:

.. code-block:: shell

cd Doc

Ensure your Python version is at least 3.11. You can verify it with:

The following instructions all assume your current working dir is
the ``Doc`` subdirectory in your :ref:`CPython repository clone <checkout>`.
Make sure to switch to it with ``cd Doc`` if necessary.
.. code-block:: shell

python --version

.. _doc-create-venv:

Expand Down
Loading