id dZddlZddlZddlZddlmZmZddlZddlm Z ej e dej j dZ dS)z$Tests for numpy.distutils.build_ext.N)indentdedent)IS_WASMzcannot start subprocess in wasm)reasonc ddlm}|stjdt |dz d5}|t tddd d d n #1swxYwYt |d z d5}|t td dd d d n #1swxYwYt |d z d5}|d d d d n #1swxYwYt |dz d5}tj tj tddd}|td|dd d d n #1swxYwY|}tjtjddddt#|dz dt#|dz gt#|d }t |dz 5}|D]}d|vr|}nd d d n #1swxYwY|Jd S)zY Ensures multiple "fake" static libraries are correctly linked. see gh-18295 r)has_f77_compilerzNo F77 compiler foundz _dummy1.fwzL FUNCTION dummy_one() RETURN END FUNCTIONz )prefixNz _dummy2.fzL FUNCTION dummy_two() RETURN END FUNCTIONz_dummy.czint PyInit_dummyext;zsetup.pyz..a@ def configuration(parent_package="", top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration("", parent_package, top_path) config.add_library("dummy1", sources=["_dummy1.f"]) config.add_library("dummy2", sources=["_dummy2.f"]) config.add_extension("dummyext", sources=["_dummy.c"], libraries=["dummy1", "dummy2"]) return config if __name__ == "__main__": import sys sys.path.insert(0, r"zv") from numpy.distutils.core import setup setup(**configuration(top_path="").todict())buildinstallz--prefix installdirz--recordztmp_install_log.txt)cwddummyext)numpy.f2py.tests.utilrpytestskipopenwriterrospathjoindirname__file__ subprocess check_callsys executablestrstrip)tmp_pathrfidsrctree build_dirsolines Y/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/distutils/tests/test_build_ext.pytest_multi_fortran_libs_linkr' s766666    - +,,, h$c * *-c &!&+,,, - - ---------------- h$c * *-c &!&+,,, - - ---------------- h#S ) )*S ()))*************** h#S ) )BS',,rwx88$dKK &@'.@@@AA B B BBBBBBBBBBBBBBBB&I3>:w %s8l+B'C'C%s86K+K'L'L")nn  B h-- . .#  DT!!ZZ\\" >>>>>sZ2A66A:=A:2CCC0DDD0A+F''F+.F+ I  I I )__doc__rrrtextwraprrr numpy.testingrmarkskipifslowr'r&r0s**  ######## !!!!!!G$EFF>>GF>>>r/