File: //lib64/python3.8/distutils/command/__pycache__/build_ext.cpython-38.opt-2.pyc
U
e5dP{ ã @ s² d dl Z d dlZd dlZd dlZd dlmZ d dlT d dlmZm Z d dlm
Z
d dlmZ d dl
mZ d dlmZ d d lmZ d d
lmZ e d¡Zdd
„ ZG dd„ deƒZdS )é N)ÚCommand)Ú*)Úcustomize_compilerÚget_python_version)Úget_config_h_filename)Únewer_group)Ú Extension)Úget_platform)Úlog)Ú USER_BASEz3^[a-zA-Z_][a-zA-Z_0-9]*(\.[a-zA-Z_][a-zA-Z_0-9]*)*$c C s ddl m} | ƒ d S )Nr ©Úshow_compilers)Údistutils.ccompilerr
r © r ú3/usr/lib64/python3.8/distutils/command/build_ext.pyr
s r
c @ s e Zd ZdZdej Zdddddeƒ fdd d
de fdd
dddde fddddddddddgZddddd gZ d!d"d#e
fgZd$d%„ Zd&d'„ Z
d(d)„ Zd*d+„ Zd,d-„ Zd.d/„ Zd0d1„ Zd2d3„ Zd4d5„ Zejd6d7„ ƒZd8d9„ Zd:d;„ Zd<d=„ Zd>d?„ Zd@dA„ ZdBdC„ ZdDdE„ ZdFdG„ Zd"S )HÚ build_extz8build C/C++ extensions (compile/link to build directory)z (separated by '%s'))z
build-lib=Úbz(directory for compiled extension modules)zbuild-temp=Útz1directory for temporary files (build by-products)z
plat-name=Úpz>platform name to cross-compile for, if supported (default: %s))ÚinplaceÚiziignore build-lib and put compiled extensions into the source directory alongside your pure Python modulesz
include-dirs=ÚIz.list of directories to search for header files)zdefine=ÚDzC preprocessor macros to define)zundef=ÚUz!C preprocessor macros to undefine)z
libraries=Úlz!external C libraries to link withz
library-dirs=ÚLz.directories to search for external C libraries)zrpath=ÚRz7directories to search for shared C libraries at runtime)z
link-objects=ÚOz2extra explicit link objects to include in the link)ÚdebugÚgz'compile/link with debugging information)ÚforceÚfz2forcibly build everything (ignore file timestamps))z compiler=Úczspecify the compiler type)z parallel=Újznumber of parallel build jobs)úswig-cppNz)make SWIG create C++ files (default is C))z
swig-opts=Nz!list of SWIG command line options)zswig=Nzpath to the SWIG executable)ÚuserNz#add user include, library and rpathr r r r$ r% z
help-compilerNzlist available compilersc C s‚ d | _ d | _d | _d | _d| _d | _d | _d | _d | _d | _ d | _
d | _d | _d | _
d | _d | _d | _d | _d | _d | _d | _d S )Nr )Ú
extensionsÚ build_libÚ plat_nameÚ
build_tempr ÚpackageÚinclude_dirsÚdefineÚundefÚ librariesÚlibrary_dirsÚrpathÚlink_objectsr r ÚcompilerÚswigÚswig_cppÚ swig_optsr% Úparallel©Úselfr r r Úinitialize_optionsj s* zbuild_ext.initialize_optionsc
C sü ddl m} | ddddddd d
¡ | jd kr8| jj| _| jj| _| ¡ }|jdd}| j d krn| jj pjg | _ t
| j tƒrŠ| j t
j¡| _ tjtjkr®| j t
j tjd
¡¡ | j | t
jj¡¡ ||krâ| j | t
jj¡¡ | d¡ | d¡ | jd krg | _| jd krg | _nt
| jtƒr:| j t
j¡| _| jd krNg | _nt
| jtƒrl| j t
j¡| _t
jdkrh| j t
j tjd¡¡ tjtjkr¶| j t
j tjd¡¡ | jrÒt
j | jd¡| _nt
j | jd¡| _| j t
j tƒ ¡¡ t tdd ƒ}|r| j |¡ | j!dkr*d}n| j!dd … }t
j tjd¡}|r\t
j ||¡}| j |¡ tj"d d… dkrÆtj# $t
j tjd¡¡rº| j t
j tjddt%ƒ d¡¡ n| j d¡ | &d¡rú|j'sî| j | &d ¡¡ n| j d¡ | j(r| j( d!¡}d"d#„ |D ƒ| _(| j)r4| j) d!¡| _)| j*d krHg | _*n| j* d$¡| _*| j+rºt
j t,d
¡}t
j t,d¡} t
j -|¡r”| j |¡ t
j -| ¡rº| j | ¡ | j | ¡ t
| j.tƒrøzt/| j.ƒ| _.W n t0k
rö t1d%ƒ‚Y nX d S )&Nr )Ú sysconfigZbuild)r' r' )r) r) )r2 r2 )r r )r r )r6 r6 )r( r( é )Z
plat_specificZincluder. r1 ÚntZlibsZDebugZReleaseÚ_homeÚwin32é ZPCbuildé ÚcygwinÚbinÚlibÚpythonZconfigÚ.ÚPy_ENABLE_SHAREDZLIBDIRú,c S s g | ]}|d f‘qS )Ú1r )Ú.0Zsymbolr r r Ú
<listcomp>ù s z.build_ext.finalize_options.<locals>.<listcomp>ú zparallel should be an integer)2Ú distutilsr: Zset_undefined_optionsr* ÚdistributionZext_packageZext_modulesr&