dist directory is no longer created by radarhere · Pull Request #7974 · python-pillow/Pillow

#7957 (comment)

During the release, the output of make release-test includes:

Successfully installed pillow-10.4.0.dev0
rm dist/.egg
rm: dist/
.egg: No such file or directory
make: [release-test] Error 1 (ignored)
rmdir dist
rmdir: dist: No such file or directory

This started happening due to #5896. python3 setup.py install creates a dist egg, but python3 -m pip install . does not.

#7957 removed -rm dist/*.egg.

If there's no dist directory, then there's no need remove it either, so -rmdir dist can also be removed.