asl3 commented on code in PR #54549: URL: https://github.com/apache/spark/pull/54549#discussion_r2875754528
########## python/docs/source/tutorial/python_packaging.rst: ########## @@ -251,3 +252,60 @@ An end-to-end Docker example for deploying a standalone PySpark with ``SparkSess can be found `here <https://github.com/criteo/cluster-pack/blob/master/examples/spark-with-S3/README.md>`_ - it uses cluster-pack, a library on top of PEX that automatizes the intermediate step of having to create & upload the PEX manually. + + +Using uv run +------------ + +`uv <https://docs.astral.sh/uv/>`_ can run self-contained Python scripts with inline dependency +declarations and no manual environment management. Dependencies are resolved and installed +automatically on first run. + +To use it, create a wrapper script called ``uv_run``: + +.. code-block:: bash + + exec uv run [--python <version>] "$@" + +and make it executable with ``chmod +x uv_run``. + +You may pass ``--python <version>`` to select a specific Python interpreter Review Comment: should we link the minimum python version [requirement](https://spark.apache.org/docs/latest/#:~:text=Spark%20runs%20on%20Java%2017,R%203.5+%20(Deprecated).) ? -- 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]
