`L iHddlZddlZddlmZddZdZedk(reyy)N)Tempitact|dd5}|j}dddtj}|j }t|dd5}|j |dddy#1swYWxYw#1swYyxYw)zProcess tempita templated file and write out the result. The template file is expected to end in `.c.tp` or `.pyx.tp`: E.g. processing `template.c.in` generates `template.c`. rzutf-8)encodingNw)openreadtempitaTemplate substitutewrite)fromfileoutfileftemplate_contenttemplatecontents b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/sklearn/_build_utils/tempita.pyprocess_tempitars hg .$!668$ 01H!!#G gsW -  $$ sA6B6A?B ctj}|jdtd|jddtd|jddtd |j }|j j d std |j |js td tjjtj|j}tjj|tjjtjj|j d d}t|j |y)NinfilezPath to the input file)typehelpz-oz--outdirzPath to the output directoryz-iz--ignorezKAn ignored input - may be useful to add a dependency between custom targetsz.tpzUnexpected extension: z)Missing `--outdir` argument to tempita.pyr)argparseArgumentParser add_argumentstr parse_argsrendswith ValueErroroutdirospathjoingetcwdsplitextsplitr)parserargs outdir_absrs rmainr, s  $ $ &F s1IJ js9WX    0     D ;;   &1$++?@@ ;;DEEbiik4;;7JggllBGG$$RWW]]4;;%?%BCAFGDKK)__main__)N)rr#Cythonrr rr,__name__r-rr2s.  % "*: zFr-