관리-도구
편집 파일: setuptools_build.cpython-312.pyc
� G��eS � �L � d dl Z d dlZd dlmZmZmZ ej d� j � Z dde deee de de dee f d �Zde dee d ee de dee f d�Zde dee dee fd �Z de dee de dee dee de dee fd�Zde dee de dee fd�Zy)� N)�List�Optional�Sequenceah exec(compile(''' # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py # # - It imports setuptools before invoking setup.py, to enable projects that directly # import from `distutils.core` to work with newer packaging standards. # - It provides a clear error message when setuptools is not installed. # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so # setuptools doesn't think the script is `-c`. This avoids the following warning: # manifest_maker: standard file '-c' not found". # - It generates a shim setup.py, for handling setup.cfg-only projects. import os, sys, tokenize try: import setuptools except ImportError as error: print( "ERROR: Can not execute `setup.py` since setuptools is not available in " "the build environment.", file=sys.stderr, ) sys.exit(1) __file__ = %r sys.argv[0] = __file__ if os.path.exists(__file__): filename = __file__ with tokenize.open(__file__) as f: setup_py_code = f.read() else: filename = "<auto-generated setuptools caller>" setup_py_code = "from setuptools import setup; setup()" exec(compile(setup_py_code, filename, "exec")) ''' % ({!r},), "<pip-setuptools-caller>", "exec")) � setup_py_path�global_options�no_user_config�unbuffered_output�returnc � � t j g}|r|dgz }|dt j | � gz }|r||z }|r|dgz }|S )ao Get setuptools command arguments with shim wrapped setup file invocation. :param setup_py_path: The path to setup.py to be wrapped. :param global_options: Additional global options. :param no_user_config: If True, disables personal user configuration. :param unbuffered_output: If True, adds the unbuffered switch to the argument list. z-uz-cz --no-user-cfg)�sys� executable�_SETUPTOOLS_SHIM�format)r r r r �argss ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/utils/setuptools_build.py�make_setuptools_shim_argsr 1 s[ � � �N�N��D��������T�#�*�*�=�9�:�:�D���������!�!���K� � build_options�destination_dirc �<