Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/numpy/distutils/tests/__pycache__/test_build_ext.cpython-37.pyc
Назад
B �5�gh � @ sH d Z ddlZddlZddlZddlmZmZ ddlZejj dd� �Z dS )z$Tests for numpy.distutils.build_ext.� N)�indent�dedentc C st ddl m} |� st�d� t| d d��}|�ttd�dd�� W d Q R X t| d d��}|�ttd�dd�� W d Q R X t| d d��}|�d � W d Q R X t| d d��6}tj � tj �t�ddd�}|�td|� d��� W d Q R X | }t jtjddddt| d �dt| d �gt|�d� d }t| d ��*}x"|D ]}d|k�r:|�� }P �q:W W d Q R X |d k �spt�d S )zY Ensures multiple "fake" static libraries are correctly linked. see gh-18295 r )�has_f77_compilerzNo F77 compiler foundz _dummy1.f�wzL 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())�build�installz--prefixZ installdirz--recordztmp_install_log.txt)�cwdZdummyext)Znumpy.f2py.tests.utilr �pytest�skip�open�writer r �os�path�join�dirname�__file__� subprocess� check_call�sys� executable�str�strip�AssertionError)Ztmp_pathr �fidZsrctree� build_dir�so�line� r �Z/home/digitalm-up/venv/lib/python3.7/site-packages/numpy/distutils/tests/test_build_ext.py�test_multi_fortran_libs_link s6 r )�__doc__r r r �textwrapr r r �markZslowr r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка