Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Don't call make clean or pip in tox#8754

Merged
radarhere merged 1 commit into
python-pillow:mainpython-pillow/Pillow:mainfrom
hugovk:update-toxhugovk/Pillow:update-toxCopy head branch name to clipboard
Feb 15, 2025
Merged

Don't call make clean or pip in tox#8754
radarhere merged 1 commit into
python-pillow:mainpython-pillow/Pillow:mainfrom
hugovk:update-toxhugovk/Pillow:update-toxCopy head branch name to clipboard

Conversation

@hugovk

@hugovk hugovk commented Feb 15, 2025

Copy link
Copy Markdown
Member

https://github.com/tox-dev/tox-uv is a tox plugin that uses uv instead of pip. By default, it doesn't install pip into the tox virtualenv.

We don't actually need to call pip install . here, because tox itself installs Pillow into its virtualenv.

And we don't need to run make clean either, because again tox installs into its own virtualenv, and the .so files are found at paths like:

./.tox/py313/lib/python3.13/site-packages/PIL/_imagingmath.cpython-313-darwin.so
./.tox/py313/lib/python3.13/site-packages/PIL/_imaging.cpython-313-darwin.so
./.tox/py313/lib/python3.13/site-packages/PIL/_webp.cpython-313-darwin.so
./.tox/py313/lib/python3.13/site-packages/PIL/_imagingcms.cpython-313-darwin.so
./.tox/py313/lib/python3.13/site-packages/PIL/_imagingft.cpython-313-darwin.so
./.tox/py313/lib/python3.13/site-packages/PIL/_imagingmorph.cpython-313-darwin.so
./.tox/py313/lib/python3.13/site-packages/PIL/_imagingtk.cpython-313-darwin.so

And not like these that pip install . creates:

./build/lib.macosx-10.13-universal2-cpython-313/PIL/_imagingmath.cpython-313-darwin.so
./build/lib.macosx-10.13-universal2-cpython-313/PIL/_imaging.cpython-313-darwin.so
./build/lib.macosx-10.13-universal2-cpython-313/PIL/_webp.cpython-313-darwin.so
./build/lib.macosx-10.13-universal2-cpython-313/PIL/_imagingcms.cpython-313-darwin.so
./build/lib.macosx-10.13-universal2-cpython-313/PIL/_imagingft.cpython-313-darwin.so
./build/lib.macosx-10.13-universal2-cpython-313/PIL/_imagingmorph.cpython-313-darwin.so
./build/lib.macosx-10.13-universal2-cpython-313/PIL/_imagingtk.cpython-313-darwin.so

@hugovk hugovk added the Testing label Feb 15, 2025
@radarhere
radarhere merged commit 0364cfd into python-pillow:main Feb 15, 2025
@hugovk
hugovk deleted the update-tox branch February 15, 2025 19:26
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.