a
    p=icV                     @   sx   d dl Z d dlZd dlZd dlmZ d dlmZ e doJe dZ	dddZ
ed	krtd d
lmZ ee
d dS )    N)join)platform_bitsWindowsZMS c                    s  ddl m}m |d| |  fdd}tjd d dkrDdg}ng d	}|d
  d  d  d g }dg}tj	dkr|d dg}t
rtdkr|dg7 }nt
s|dg7 }tjdkr|dg7 }dg}g }	g d}
g d}dd } jd|dg |gdd dD ]j} jd | d | d!d"| d#| d!d"| d#| d$gd%d&td&|g||||
d | d'g |d( qd)D ]t}|d*kr||	 n|} jd | d | d!d"| d#| d!gd%d&td&|g||||
d | d'd+d,g |d( qd-D ]P} j|| d!g|||d%d&g|
| d'| d.g |d/  | d. qd0D ]>} j|| d!g|d1g |d%d&g||
| d'g |d2 qR d3 tj	dkrdd1gnd1g} jd4g d5g d6||||
d7g || d(  j|
   d8  S )9Nr   )Configurationget_mathlibsrandomc                    s6      } }tjdkr&|ddg | j| d S )Nwin32ZAdvapi32ZKernel32)Zget_config_cmdsysplatformextend	libraries)ext	build_dirZ
config_cmdlibsconfigr    c/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/lib/python3.9/site-packages/numpy/random/setup.pygenerate_libraries   s    
z)configuration.<locals>.generate_libraries   aix)Z_LARGE_FILESN))Z_FILE_OFFSET_BITSZ64)Z_LARGEFILE_SOURCE1)Z_LARGEFILE64_SOURCEr   )ZNPY_NO_DEPRECATED_APIr   testsz
tests/dataZ	_examplesZ	npyrandomntmz-U__GNUC_GNU_INLINE__    z
/arch:SSE2z-std=c99cygwinz-Wl,--export-all-symbols)ZNP_RANDOM_LEGACYr   )z__init__.pxdzc_distributions.pxdbit_generator.pxd)z src/distributions/logfactorial.c!src/distributions/distributions.cz%src/distributions/random_mvhg_count.cz)src/distributions/random_mvhg_marginals.cz)src/distributions/random_hypergeometric.cc                 S   s   | j jdkrdgS g S )z Add flag if we are using MSVC compiler

        We can't see this in our scope, because we have not initialized the
        distutils build command, so use this deferred calculation to run when
        we are building the library.
        Zmsvcz/GL-)compilercompiler_type)Z	build_cmdr   r   r   
gl_if_msvcL   s    z!configuration.<locals>.gl_if_msvclib)include_dirsZextra_compiler_args)sourcesZinstall_dirZ
build_info)Zmt19937_z.czsrc//z-jump.c.srcz.pyx)r%   r$   r   extra_compile_argsextra_link_argsdependsdefine_macros)Zphiloxpcg64Zsfc64r.   zbit_generator.pyxr   )_commonZbit_generatorz.pxd)r%   r   r*   r+   r$   r,   r-   )Z
_generatorZ_bounded_integersZnpymath)r%   r   r*   r$   r+   r,   r-   z_bounded_integers.pxdZmtrand)zmtrand.cz!src/legacy/legacy-distributions.cr   )r(   r)   z
src/legacyz
mtrand.pyxz*.pyi)Znumpy.distutils.misc_utilr   r   r
   r   appendZadd_subpackageZadd_data_dirosnameis_msvcr   Zadd_installed_libraryadd_extensionr   Zadd_data_files)parent_packageZtop_pathr   r   ZdefsZEXTRA_LINK_ARGSZEXTRA_LIBRARIESZEXTRA_COMPILE_ARGSZLEGACY_DEFSZ
PCG64_DEFSr,   Znpyrandom_sourcesr"   genZ_defsZmtrand_libsr   r   r   configuration   s    














	

	


r7   __main__)setup)r7   )r   N)r1   r   r
   os.pathr   Znumpy.distutils.system_infor   
startswithpython_compilerr3   r7   __name__Znumpy.distutils.corer9   r   r   r   r   <module>   s   
 