%L iX tddlZddlZddlZddlZddlZddlmZmZddlm Z ddl m Z m Z ddgdfdZ dZdZy) N) check_call check_output)TarFile) METADATA_FN ZONEFILENAMEgzc tj}tjj |d}tjj t } tj|5}|D]} |j| ||D cgc]"} tjj || $} } t|| dddttjj |td5} tj|| dddddtjj |t} tj| d|z5}tj|D]4}tjj ||}|j!||6 dddt#j$|ycc} w#1swYxYw#1swYxYw#1swY=xYw#t#j$|wxYw)zRebuild the internal timezone info in dateutil/zoneinfo/zoneinfo*tar* filename is the timezone tarball from ``ftp.iana.org/tz``. zoneinfoNwT)indent sort_keyszw:%s)tempfilemkdtempospathjoindirname__file__ropenextract_run_zicrjsondumprlistdiraddshutilrmtree)filenametagformat zonegroupsmetadatatmpdirzonedir moduledirtfnamen filepathsftargetentry entrypaths _/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/dateutil/zoneinfo/rebuild.pyrebuildr0 s    Fggll6:.G)I \\( # )r" ) 4( ):DEQfa0EIE Wi (  )"'',,w 4c : =a IIh!t < =i6 \\&&6/ 2 )bG, )GGLL%8 y%( ) )  fF ) ) = = ) )  fshG,.G 'G3G6G,7GAG,A G $G,GG G,GG, G)%G,,Hc tddg}d|vrddg}ng}tdg|zd|gz|zy#t$r}t|d}~wwxYw)aCalls the ``zic`` compiler in a compatible way to get a "fat" binary. Recent versions of ``zic`` default to ``-b slim``, while older versions don't even have the ``-b`` option (but default to "fat" binaries). The current version of dateutil does not support Version 2+ TZif files, which causes problems when used in conjunction with "slim" binaries, so this function is used to ensure that we always get a "fat" binary. zicz--helpNs-b z-bfatz-d)rOSError_print_on_nosuchfiler)r%r* help_texte bloat_argss r/rr)sh %!23 E]  w#tWo5 AB Q s 2 A  AA cN|jdk(rtjdyy)zdPrint helpful troubleshooting message e is an exception raised by subprocess.check_call() zzCould not find zic. Perhaps you need to install libc-bin or some other package that provides it, or it's not in your PATH?N)errnologgingerror)r7s r/r5r5As%  ww!|  ( ))r<rrrr subprocessrrtarfilerdateutil.zoneinforrr0rr5r>r/rCs8  /7tT:C0 )r>