a
    Qe                      @   s   d dl Z d dlZd dlZd dlZd dlZdddZedkre Zej	dde
dd	 e Zejse ejejeZed
 d Zejesee eedd n6e ejejeZe e ej Zee dS )    NFc                 C   sV   t tjd }|r6tjtjt|d| ddgdd ntjtjt|d| gdd d S )Nz_boost/include/code_gen.py-oz--distutils-buildTrueT)check)	pathlibPath__file__parent
subprocessrunsys
executablestr)outdirdistutils_buildZcode_gen r   M/var/www/sunrise/env/lib/python3.9/site-packages/scipy/stats/_generate_pyx.py
make_boost   s    r   __main__r   z--outdirzPath to the output directory)typehelpZ_boostsrcT)r   )F)r   r	   r   osargparser   __name__ArgumentParserparseradd_argumentr   
parse_argsargsr   r   pathabspathdirnamer   Z
outdir_absZoutdir_abs_boostexistsmakedirsZ
srcdir_absgetcwdr   r   r   r   <module>   s(   


