
    G/Ph
                         d Z ddlZddlZddlZddlmZmZ ddlZddlm	Z	 ej
                            e	d          ej
        j        d                         ZdS )z$Tests for numpy.distutils.build_ext.    N)indentdedent)IS_WASMzcannot start subprocess in wasm)reasonc                    ddl m}  |            st          j        d           t	          | dz  d          5 }|                    t          t          d          d                     d	d	d	           n# 1 swxY w Y   t	          | d
z  d          5 }|                    t          t          d          d                     d	d	d	           n# 1 swxY w Y   t	          | dz  d          5 }|                    d           d	d	d	           n# 1 swxY w Y   t	          | dz  d          5 }t          j	        
                    t          j	                            t                    ddd          }|                    t          d| d                     d	d	d	           n# 1 swxY w Y   | }t          j        t          j        ddddt#          | dz            dt#          | dz            gt#          |                     d	}t	          | dz            5 }|D ]}d|v r|                                } nd	d	d	           n# 1 swxY w Y   |J d	S )zY
    Ensures multiple "fake" static libraries are correctly linked.
    see gh-18295
    r   )has_f77_compilerzNo F77 compiler foundz	_dummy1.fwzL            FUNCTION dummy_one()
            RETURN
            END FUNCTIONz      )prefixNz	_dummy2.fzL            FUNCTION dummy_two()
            RETURN
            END FUNCTIONz_dummy.czint PyInit_dummyext;zsetup.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())buildinstallz--prefix
installdirz--recordztmp_install_log.txt)cwddummyext)numpy.distutils.tests.utilitiesr   pytestskipopenwriter   r   ospathjoindirname__file__
subprocess
check_callsys
executablestrstrip)tmp_pathr   fidsrctree	build_dirsolines          d/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/numpy/distutils/tests/test_build_ext.pytest_multi_fortran_libs_linkr'   
   s    A@@@@@ -+,,, 
h$c	*	* -c		& !   &+, , , 	- 	- 	-- - - - - - - - - - - - - - -
 
h$c	*	* -c		& !   &+, , , 	- 	- 	-- - - - - - - - - - - - - - -
 
h#S	)	) *S		()))* * * * * * * * * * * * * * *
 
h#S	)	) BS',,rwx88$dKK		& @ '.@ @ @ A A 	B 	B 	BB B B B B B B B B B B B B B B& I3>:w	%s8l+B'C'C%s86K+K'L'L ")nn	    
B	h--	.	. # 	 	DT!!ZZ\\ "              
 >>>>>sZ   2A66A:=A:2CCC0DDD0A+F''F+.F+ I		II)__doc__r   r   r   textwrapr   r   r   numpy.testingr   markskipifslowr'        r&   <module>r0      s    * * 				     



 # # # # # # # #  ! ! ! ! ! !G$EFF> >  GF> > >r/   