Skip to content

Do not install test dependencies in Install step - #10205

Merged
hugovk merged 1 commit into
python-pillow:mainfrom
radarhere:deps
Oct 15, 2026
Merged

hugovk merged 1 commit into
python-pillow:mainfrom
radarhere:deps

Conversation

@radarhere

Copy link
Copy Markdown
Member

#9945 updated the Makefile so that the Build step will install the test dependencies.

make install-coverage

Pillow/Makefile

Lines 64 to 65 in afb1633

install-coverage:
CFLAGS="-coverage -Werror=implicit-function-declaration" python3 -m pip -v install .[tests]

Pillow/pyproject.toml

Lines 65 to 80 in afb1633

optional-dependencies.tests = [
"coverage>=7.4.2",
"defusedxml",
"markdown2",
"olefile",
"packaging",
# Only used by the leak tests, which only run on Linux and macOS.
# psutil does not support iOS at all, and ships no wheels for Android.
"psutil; sys_platform=='linux' or sys_platform=='darwin'",
"pytest",
"pytest-cov",
"pytest-timeout",
"pytest-xdist",
"setuptools",
"trove-classifiers>=2024.10.12",
]

This means that the Install step doesn't need to install those dependencies beforehand.

@radarhere radarhere changed the title Do not install test dependencies in Install step, when Build step wil… Do not install test dependencies in Install step Oct 15, 2026
@hugovk
hugovk merged commit c935bc1 into python-pillow:main Oct 15, 2026
51 checks passed
@radarhere
radarhere deleted the deps branch October 15, 2026 12:09
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