o
    i                     @   s(   d dl Z d dlZd dlZdZdd ZdS )    Nzlfs-multipart-uploadc                  C   sz   t jdkr	tdd} tjt d}tj|dd tj	ddd	| gd|d
 tj	g dd|d
 tj	ddgd|d
 dS )zz
    If in Linux, installs git-lfs in userspace
    (sometimes useful if you can't `sudo apt install` or equivalent).
    linuxz$Only implemented for Linux right nowz_https://github.com/git-lfs/git-lfs/releases/download/v2.13.1/git-lfs-linux-amd64-v2.13.1.tar.gzinstall_lfsT)exist_okwgetz-Otarball.tar.gz)checkcwd)tarz-xvzfr   bashz
install.shN)
sysplatform
ValueErrorospathjoingetcwdmakedirs
subprocessrun)GIT_LFS_TARBALLCWD r   N/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/huggingface_hub/lfs.pyinstall_lfs_in_userspace   s   
r   )r   r   r   LFS_MULTIPART_UPLOAD_COMMANDr   r   r   r   r   <module>   s
   