o
    §ƒðjD  ã                   @   s<   d dl Z ddlmZ ddlmZ dd„ Zdd„ Zd	d
„ ZdS )é    Né   )Úcompile_run_strings)ÚCompilerNotFoundErrorc                  C   ó¦   t tdƒsPztdgdd�\\} }}W n ty*   dt_tj dd¡dkr&‚ Y tjS w |d	 tjks6d
| vrMtj dd¡dkrGt	d| |f ƒ‚dt_tjS dt_tjS )NÚresult)zmain.f90z.program foo
print *, "hello world"
end programT©ÚcleanFÚSYMPY_STRICT_COMPILER_CHECKSÚ0Ú1Úexit_statusúhello worldú&Failed to compile test program:
%s
%s
)
ÚhasattrÚhas_fortranr   r   r   ÚosÚenvironÚgetÚEX_OKÚ
ValueError©ÚstdoutÚstderrÚinfo© r   ú«/tmp/claude-1000/-var-www-html-academy/3f42efd1-c2b7-4d08-9b05-30d86bb35479/scratchpad/piper/venv/lib/python3.10/site-packages/sympy/utilities/_compilation/availability.pyr      s(   
ûÿ	õÿr   c                  C   r   )Nr   )zmain.czC#include <stdio.h>
int main(){
printf("hello world\n");
return 0;
}Tr   Fr	   r
   r   r   r   r   )
r   Úhas_cr   r   r   r   r   r   r   r   r   r   r   r   r      s(   
ù	ÿ	õÿr   c                  C   r   )Nr   )zmain.cxxzJ#include <iostream>
int main(){
std::cout << "hello world" << std::endl;
}Tr   Fr	   r
   r   r   r   r   )
r   Úhas_cxxr   r   r   r   r   r   r   r   r   r   r   r   r   7   s(   
úÿ	õÿr   )r   Úcompilationr   Úutilr   r   r   r   r   r   r   r   Ú<module>   s    