σ 2ΔΘ[c@`sŽddlmZmZmZddlZddlZddlmZmZddlm Z ddl m Z m Z m Z ddgZdefd„ƒYZejdkrδddlZddlZddlZdefd „ƒYZn&dd lmZdefd „ƒYZedkrŠddlmZejdƒddlmZdejkrneeddƒjƒƒqŠeeddƒjƒƒndS(i(tdivisiontabsolute_importtprint_functionN(t FCompilertdummy_fortran_file(tplatform(tjointdirnametnormpathtPGroupFCompilertPGroupFlangCompilercB`s<eZdZdZdZedkrŽiddgd6ddgd 6dd dgd 6ddgd 6d gd6ddgd6dgd6ZdgZndiddgd6dgd 6dd gd 6dgd 6dddgd6ddgd6dgd6ZdgZdZdZ d„Z d„Z d„Z edkr1d„Z nd„ZRS(tpgsPortland Group Fortran Compilers1\s*pg(f77|f90|hpf|fortran) (?P[\d.-]+).*tdarwinss-Vt version_cmdt pgfortrans -dynamiclibt compiler_f77s-Mfixedt compiler_fixt compiler_f90tlibtoolt linker_sotars-crtarchivertranlibts-shareds-fpics-module s-IcC`sddg}|j|S(Ns-Minform=informs-Mnosecond_underscore(t pic_flags(tselftopt((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyt get_flags.s cC`sdgS(Ns-fast((R((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyt get_flags_opt2scC`sdgS(Ns-g((R((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pytget_flags_debug5scC`s dddgS(Ns-dynamics -undefinedtdynamic_lookup((R((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pytget_flags_linker_so9scC`sd|S(Ns-R"%s"((Rtdir((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pytruntime_library_dir_option<s(t__name__t __module__t compiler_typet descriptiontversion_patternRt executablesRtmodule_dir_switchtmodule_include_switchRRRRR!(((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyR s<                    iicB`sαeZdZdZdZdZdgZiddgd6dgd6dgd6dgd 6dgd 6ed d gd 6dd6Zd Z dZ d„Z e j ddƒd„ƒZd„Zd„Zd„Zd„Zd„Zd„ZRS(tflangs$Portland Group Fortran LLVM Compilers/\s*(flang|clang) version (?P[\d.-]+).*slib.exess --versionR RRRRs/verboses/OUT:RRs-module cC`s)tj|ƒ}|jdddgƒ|S(NR*tflangrtitompstub(Rt get_librariestextend(RR((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyR-Zstmaxsizei€cC`sItj|ƒ}t|jddƒ}|jtt|ddƒƒƒ|S(s%List of compiler library directories.Ris..tlib(Rtget_library_dirsRR'tappendRR(RRt flang_dir((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyR1_scC`sgS(N((R((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyRhscC`sgS(N((R((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pytget_flags_freekscC`sdgS(Ns-g((R((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyRnscC`sdgS(Ns-O3((R((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyRqscC`sgS(N((R((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pytget_flags_archtscC`s t‚dS(N(tNotImplementedError(RR ((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyR!wsN(R"R#R$R%R&tar_exetpossible_executablestNoneR'tlibrary_switchR(R-t functoolst lru_cacheR1RR4RRR5R!(((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyR Es.             (tCompilerNotFoundcB`seZdZdZd„ZRS(R*s$Portland Group Fortran LLVM CompilercC`stdƒ‚dS(Ns!Flang unsupported on Python < 3.5(R=(R((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyt get_version‚s(R"R#R$R%R>(((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyR ~st__main__(tlogi(tcustomized_fcompilerR*tcompilerR (ii(t __future__RRRtsystostnumpy.distutils.fcompilerRRRtos.pathRRRt compilersR t version_infot subprocesstshlexR;R R=R"t distutilsR@t set_verbositytnumpy.distutilsRAtargvtprintR>(((s;/tmp/pip-build-fiC0ax/numpy/numpy/distutils/fcompiler/pg.pyts*   2   6