[Python-ideas] Python as a tool to download stuff for bootstrapping

Simon Sapin simon.sapin at kozea.fr
Thu Jul 5 22:15:10 CEST 2012


Le 05/07/2012 21:55, anatoly techtonik a écrit :
> This one is practical. I am looking at NaCl SDK download page:
> https://developers.google.com/native-client/sdk/download
>
> "you need Python installed", "download SDK update utility"
>
> What makes me sad that update utility is a Python script in a zip file
> - nacl_sdk.zip
> which includes shell script and a .bat file for launching this Python script.
>
> This makes me kind of sad. You have Python installed. Why can't you
> just crossplatformly do:
>
>    mkdir nacl
>    cd nacl
>    python -m urllib get
> http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/update_sdk.py
>    python update_sdk.py

Hi,

"Sadness" drama aside, what’s your point? Is this a proposal to add a 
command-line API for urlretrieve()?

In that case, +1. (For what my vote is worth.)
The use cases are limited (just use the Python API) but they do exist, 
as you showed.

Regards,
-- 
Simon Sapin





More information about the Python-ideas mailing list