b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / distutils /
Filename/usr/lib64/python2.6/distutils/cygwinccompiler.pyo
Size9.31 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 09:40
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc @sïdZdZddkZddkZddkZddklZlZddkl Z ddk
l Z ddk l
Z
lZlZddklZd �Zd
e fd ��YZd efd
��YZdZdZdZd�Zd�ZdS(sdistutils.cygwinccompiler

Provides the CygwinCCompiler class, a subclass of UnixCCompiler that
handles the Cygwin port of the GNU C compiler to Windows. It also contains
the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
cygwin in no-cygwin mode).
s@$Id: cygwinccompiler.py 73349 2009-06-11 09:17:19Z tarek.ziade $iÿÿÿÿN(tgen_preprocess_optionstgen_lib_options(t
UnixCCompiler(t
write_file(tDistutilsExecErrort CompileErrortUnknownFileError(tlogcCs£tiid�}|djo�ti|d|d!}|djodgS|djodgS|d jod
gS|d jod gStd
|��ndS(saInclude the appropriate MSVC runtime library if Python was built
with MSVC 7.0 or later.
sMSC v.iÿÿÿÿii
t1300tmsvcr70t1310tmsvcr71t1400tmsvcr80t1500tmsvcr90sUnknown MS Compiler version %s N(tsystversiontfindt
ValueError(tmsc_postmsc_ver((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyt get_msvcr;s




tCygwinCCompilerc Bs�eZdZdZdZdZdZdZdZdddd�Z d �Z
d
d
d
d
d
dd
d
d
d
d

Z dd d �Z
RS(tcygwins.os.as.dllslib%s%ss%s%ss.exeic
Cs[ti||||�t�\}}|id||f�|tj o|id|�nt�\|_|_|_ |i|i
d|i|i|i f�|idjo
d|_ n
d|_ |idjo
d}nd }|i d
d d d
dddddd|i |f�|idjodg|_
|id�n
t�|_
dS(Ns%Python's GCC status: %s (details: %s)s�Python's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.s: gcc %s, ld %s, dllwrap %s
s2.10.90tgcctdllwraps2.13s-shareds
-mdll -statictcompilersgcc -mcygwin -O -Wallt compiler_sosgcc -mcygwin -mdll -O -Wallt compiler_cxxsg++ -mcygwin -O -Wallt
linker_exes gcc -mcygwint linker_sos%s -mcygwin %ss2.91.57tmsvcrts,Consider upgrading to a newer version of gcc(Rt__init__tcheck_config_ht debug_printt CONFIG_H_OKtwarnt get_versionst gcc_versiont
ld_versiontdllwrap_versiont
compiler_typet
linker_dlltset_executablest
dll_librariesR(tselftverbosetdry_runtforcetstatustdetailst
shared_option((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyR!\s< 
 
 
  c Cs­|djp
|djoEy |idd|d|g�Wq©tj
o}t|�q©XnKy)|i|i||d|g|�Wntj
o}t|�nXdS(Ns.rcs.restwindress-is-o(tspawnRRR(R.tobjtsrctexttcc_argstextra_postargstpp_optstmsg((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyt_compile�s  cCsáti|
pg�}
ti|pg�}ti|pg�}|i|i�|dj o2||ijp|idjotii|d�}tii tii
|��\}}tii ||d�}tii |d|d�}dtii
|�dg}x|D]}|i |�qW|i
t||fd|�|id jo*|
id
|g�|
id |g�q�|i |�n| p|
i d �nti||||||||d| |
| | |
�dS(
NRis.deftlibs.as
LIBRARY %stEXPORTSs
writing %sRs --output-libs--defs-s(tcopytextendR-tNonet
EXECUTABLER+tostpathtdirnametsplitexttbasenametjointappendtexecuteRRtlink(R.t target_desctobjectstoutput_filenamet
output_dirt librariest library_dirstruntime_library_dirstexport_symbolstdebugt
extra_preargsR;t
build_tempt target_langttemp_dirtdll_namet
dll_extensiontdef_filetlib_filetcontentstsym((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyRM¨sL
      tcCs |djo
d}ng}xè|D]à}tiitii|��\}}||iddgjotd||f�n|otii|�}n|djp
|djo+|itii ||||i
��q$|itii |||i
��q$W|S(NRas.rcs.ress"unknown file type '%s' (from '%s')( RCRERFRHtnormcasetsrc_extensionsRRIRKRJt
obj_extension(R.tsource_filenamest strip_dirRQt obj_namestsrc_nametbaseR9((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pytobject_filenames s$

$N(t__name__t
__module__R*Rdtstatic_lib_extensiontshared_lib_extensiontstatic_lib_formattshared_lib_formatt
exe_extensionR!R>RCRMRj(((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyRRs*>  XtMingw32CCompilercBs eZdZdddd�ZRS(tmingw32icCs§ti||||�|idjo
d}nd}|idjo
d}nd}|iddd d
d d d
ddd|i||f�g|_t�|_dS(Ns2.13s-shareds
-mdll -statics2.91.57s--entry _DllMain@12RaRsgcc -mno-cygwin -O -WallRsgcc -mno-cygwin -mdll -O -WallRsg++ -mno-cygwin -O -WallRsgcc -mno-cygwinRs%s -mno-cygwin %s %s(RR!R(R'R,R+R-R(R.R/R0R1R4t entry_point((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyR!-s 

   (RkRlR*R!(((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyRr)stoksnot okt uncertaincCsÛddkl}ddk}|itid�djo tdfS|i�}y&t|�}|i �}|i
�Wn)t j
o}t d||i
ffSX|i|d�djotd |fStd
|fSdS( s¡Check if the current Python installation (specifically, pyconfig.h)
appears amenable to building extensions with GCC. Returns a tuple
(status, details), where 'status' is one of the following constants:
CONFIG_H_OK
all is well, go ahead and compile
CONFIG_H_NOTOK
doesn't look good
CONFIG_H_UNCERTAIN
not sure -- unable to read pyconfig.h
'details' is a human-readable string explaining the situation.

Note there are two ways to conclude "OK": either 'sys.version' contains
the string "GCC" (implying that this Python was built with GCC), or the
installed "pyconfig.h" contains the string "__GNUC__".
iÿÿÿÿ(t sysconfigNtGCCissys.version mentions 'GCC'scouldn't read '%s': %st__GNUC__s'%s' mentions '__GNUC__'s '%s' does not mention '__GNUC__'(t distutilsRwtstringRRRR$tget_config_h_filenametopentreadtclosetIOErrortCONFIG_H_UNCERTAINtstrerrortCONFIG_H_NOTOK(RwR{tfntftstexc((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyR"`s     c Cs¼ddkl}ddkl}ddk}|d�}|ohti|dd�}|i�}|i�|i d|�}|o||i
d ��}q­d}nd}|d
�}|ohti|d d�}|i�}|i�|i d|�}|o||i
d ��} q.d} nd} |d �}
|
ohti|
d
d�}|i�}|i�|i d|�}|o||i
d ��} q¯d} nd} || | fS(sj Try to find out the versions of gcc, ld and dllwrap.
If not possible it returns None for it.
iÿÿÿÿ(t LooseVersion(tfind_executableNRs
-dumpversiontrs(\d+\.\d+(\.\d+)*)itlds -vRs
--versions (\d+\.\d+(\.\d+)*)( tdistutils.versionR�tdistutils.spawnR�treREtpopenR~RtsearchtgroupRC( R�R�R�tgcc_exetoutt
out_stringtresultR'tld_exeR(t dllwrap_exeR)((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyR&�sD   

  

  

(t__doc__t __revision__RERRAtdistutils.ccompilerRRtdistutils.unixccompilerRtdistutils.file_utilRtdistutils.errorsRRRRzRRRRrR$R�R�R"R&(((s1/usr/lib64/python2.6/distutils/cygwinccompiler.pyt<module>s+$ ×3 3