r?Ӽ X d Z ddlZddlZddlmZ ddlmZ ddlmZ G d d Z dS ) zinstall_scripts tests N)install_scripts)Distribution )contextsc e Zd Z edddgid ZdZdZdZdd Ze j ej dk d d Ze j ej dk d d Ze j ej dk d d Ze j ej dk d d Zd S )TestInstallScriptsfooconsole_scriptszfoo=foo:fooz0.0)nameentry_pointsversionz%/usr/dummy-test-path/local/bin/pythonz/usr/bin/env dummy-test-pythonz6C:\Dummy Test Path\Program Files\Python 3.6\python.exeNc L t | j }d|_ t | }||_ || d }||_ | t j 5 | d d d d S # 1 swxY w Y d S )Nzsetup.py build_scripts)r settingsscript_namer install_dirget_finalized_command executableensure_finalizedr quietrun)selfr r distcmdbss w/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/setuptools/tests/test_install_scripts.py_run_install_scriptsz'TestInstallScripts._run_install_scripts s DM**%d##%!**?;;B&BM ^ GGIII s 7BB Bwin32znon-Windows only)reasonc d| j d}| d| j | 5 | t | t t | d dd 5 }| }ddd n# 1 swxY w Y ddd n# 1 swxY w Y ||k sJ dS ) zt Ensure that shebang is not quoted on Unix when getting the Python exe from sys.executable. #! sys.executabler rutf-8encodingN)unix_exesetattras_cwdr stropenjoinreadliner tmpdirmonkeypatchexpectedfactuals r !test_sys_executable_escaping_unixz4TestInstallScripts.test_sys_executable_escaping_unix# sM * ))),dm<<< ]]__ &