Skip to content

Commit d0e2c1b

Browse files
committed
Use --no-dev for "production" uv runs
1 parent d74d5b0 commit d0e2c1b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
# don't get compiled properly.
151151
- name: Bootstrap Python environment
152152
run: |
153-
uv run build.py --help
153+
uv run --no-dev build.py --help
154154
155155
- name: Build
156156
if: ${{ ! matrix.dry-run }}
@@ -161,7 +161,7 @@ jobs:
161161
) ELSE (
162162
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\%MATRIX_VCVARS%"
163163
)
164-
uv run build.py --python cpython-%MATRIX_PYTHON% --sh c:\cygwin\bin\sh.exe --options %MATRIX_BUILD_OPTIONS% --vs %MATRIX_VS_VERSION%
164+
uv run --no-dev build.py --python cpython-%MATRIX_PYTHON% --sh c:\cygwin\bin\sh.exe --options %MATRIX_BUILD_OPTIONS% --vs %MATRIX_VS_VERSION%
165165
env:
166166
MATRIX_VCVARS: ${{ matrix.vcvars }}
167167
MATRIX_PYTHON: ${{ matrix.python }}

build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env -S uv run
1+
#!/usr/bin/env -S uv run --no-dev
22
# This Source Code Form is subject to the terms of the Mozilla Public
33
# License, v. 2.0. If a copy of the MPL was not distributed with this
44
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

docs/building.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ Additional operating system requirements are needed and outlined in the followin
1010

1111
Regardless of the host, to build a Python distribution::
1212

13-
$ uv run build.py
13+
$ uv run --no-dev build.py
1414

15-
On Linux and macOS, ``./build.py`` can also be used.
15+
On Linux and macOS, ``./build.py`` can also be used; it uses ``uv run --no-dev`` via its shebang.
1616

1717
To build a different version of Python::
1818

19-
$ uv run build.py --python cpython-3.14
19+
$ uv run --no-dev build.py --python cpython-3.14
2020

2121
Various build options can be specified::
2222

2323
# With profile-guided optimizations (generated code should be faster)
24-
$ uv run build.py --options pgo
24+
$ uv run --no-dev build.py --options pgo
2525
# Produce a debug build.
26-
$ uv run build.py --options debug
26+
$ uv run --no-dev build.py --options debug
2727
# Produce a free-threaded build without extra optimizations
28-
$ uv run build.py --options freethreaded+noopt
28+
$ uv run --no-dev build.py --options freethreaded+noopt
2929

3030
Different platforms support different build options.
31-
``uv run build.py --help`` will show the available build options and other usage information.
31+
``uv run --no-dev build.py --help`` will show the available build options and other usage information.
3232

3333

3434
Linux
@@ -102,6 +102,6 @@ the vcvars batch file, or by adjusting the ``PATH`` and environment variables.
102102

103103
You will need to specify the path to ``sh.exe`` from cygwin::
104104

105-
$ uv run build.py --sh c:\cygwin\bin\sh.exe
105+
$ uv run --no-dev build.py --sh c:\cygwin\bin\sh.exe
106106

107107
To build a 32-bit x86 binary, simply use an ``x86 Native Tools Command Prompt`` instead of ``x64``.

0 commit comments

Comments
 (0)