
    \ci~                         d Z ddlmZ ddlZ	 ddlZn# e$ r dZY nw xY weedk    rddlZnddlmZ  ed          dd	            Z	d
 Z
edk    r e
             dS dS )z
Platform independent script to download all the
`scipy.datasets` module data files.
This doesn't require a full scipy build.

Run: python _download_all.py <download_dir>
    )xp_capabilitiesN    )	_registryT)out_of_scopec                 &   t           t          d          | t          j        d          } t          j        ddi          }t          j                                        D ].\  }}t          j        t          j        |         ||| |           /dS )a  
    Utility method to download all the dataset files
    for `scipy.datasets` module.

    Parameters
    ----------
    path : str, optional
        Directory path to download all the dataset files.
        If None, default to the system cache_dir detected by pooch.

    Examples
    --------
    Download the datasets to the default cache location:

    >>> from scipy import datasets
    >>> datasets.download_all()

    Download the datasets to the current directory:

    >>> datasets.download_all(".")

    NzsMissing optional dependency 'pooch' required for scipy.datasets module. Please use pip or conda to install 'pooch'.
scipy-dataz
User-AgentSciPy)headers)url
known_hashfnamepath
downloader)	poochImportErroros_cacheHTTPDownloaderr   registryitemsretrieveregistry_urls)r   r   dataset_namedataset_hashs       l/var/www/html/mdtn/previsions/meteo_cartes/venv/lib/python3.11/site-packages/scipy/datasets/_download_all.pydownload_allr      s    0 } 6 7 7 	7 |~l++%|W.EFFFJ&/&8&>&>&@&@ M M"l92<@".)	M 	M 	M 	M 	MM M    c                      t          j        d          } |                     ddt          t	          j        d          d           |                                 }t          |j                   d S )NzDownload SciPy data files.)descriptionr   ?r	   z.Directory path to download all the data files.)nargstypedefaulthelp)	argparseArgumentParseradd_argumentstrr   r   
parse_argsr   r   )parserargss     r   mainr,   @   su    $1MNNNF
c %| < <M  O O O Dr   __main__)N)__doc__scipy._lib._array_apir   r%   r   r   __package__r   r   r   r,   __name__ r   r   <module>r3      s     2 1 1 1 1 1 LLLL   EEE +++  d###"M "M "M $#"MJ   zDFFFFF s    