nchammas opened a new pull request, #56996: URL: https://github.com/apache/spark/pull/56996
### What changes were proposed in this pull request? Clear stale PySpark sdist tarballs from `python/dist/` before building new ones in `dev/make-distribution.sh`. ### Why are the changes needed? #56453 added a post-build validation that checks every `dist/pyspark*.tar.gz` for top-level LICENSE and NOTICE files. However, if `python/dist/` already contains tarballs from a previous build, the glob picks them up and the validation fails with: ``` ERROR: dist/pyspark-4.0.0.dev0.tar.gz is missing LICENSE at the package root ``` The script already cleans `pyspark.egg-info` to avoid stale caches. This change also cleans out old sdists. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? I reproduced the failure locally with a stale `pyspark-4.0.0.dev0.tar.gz` in `python/dist/`, applied the fix, and confirmed `make-distribution.sh --pip` completes successfully. ### Was this patch authored or co-authored using generative AI tooling? Co-authored with GitHub Copilot. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
