Skip to content

add deprecation warnings to build-{linux,macos}.py - #998

Merged
jjhelmus merged 2 commits into
astral-sh:mainfrom
jjhelmus:deprecate_build_scripts
Mar 4, 2026
Merged

jjhelmus merged 2 commits into
astral-sh:mainfrom
jjhelmus:deprecate_build_scripts

Conversation

@jjhelmus

@jjhelmus jjhelmus commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Add a deprecation warning to the build-linux.py and build.macos.py scripts informing users of the their future removal and directing users to ./build.py.

Add a deprecation warning to the build-linux.py and build.macos.py
scripts informing users of the their future removal and directing users
to ./build.py.
DeprecationWaring is ignored by default unless called from main.
The warning could be moved into the run function as-is and it would be
shown but then users who not see the warning if the venv fails to build.
@jjhelmus

jjhelmus commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

Example results of running this script:

❯ ./build-macos.py --help
<sys>:0: FutureWarning: build-macos.py is deprecated and will be removed in the future.                                                                                          Please use ./build.py to build a distribution.
Requirement already satisfied: attrs==24.3.0 in ./build/venv.macos/lib/python3.13/site-packages (from -r /Users/jjhelmus/workspace/python-build-standalone/requirements.txt (line 3)) (24.3.0)
...
<sys>:0: FutureWarning: build-macos.py is deprecated and will be removed in the future.
Please use ./build.py to build a distribution.
usage: build-main.py [-h] [--target-triple {aarch64-unknown-linux-musl,aarch64-apple-darwin,aarch64-unknown-linux-gnu,x86_64-apple-darwin}]
...

@jjhelmus
jjhelmus merged commit 2cf27ad into astral-sh:main Mar 4, 2026
11 checks passed
jjhelmus added a commit that referenced this pull request Jun 18, 2026
Remove the deprecated build-linux.py, build-macos.py and
build-windows.py scripts and associated files.

Build should be started using `uv run build.py` or `./build.py`.

The build-linux.py and build-windows.py have shown a warning about
future removal since #998.
The removal of these scripts was mentioned in the release notes of
20260310 and 20260320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants