o
    jgD                     @   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   a/var/www/html/zoom/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    