golden hour
/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/__pycache__
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.cpython-310.pyc
9.93 KB
Del
OK
_core_metadata.cpython-310.pyc
7.24 KB
Del
OK
_entry_points.cpython-310.pyc
3.17 KB
Del
OK
_imp.cpython-310.pyc
2.01 KB
Del
OK
_importlib.cpython-310.pyc
1.48 KB
Del
OK
_itertools.cpython-310.pyc
900 B
Del
OK
_normalization.cpython-310.pyc
4.07 KB
Del
OK
_path.cpython-310.pyc
1.33 KB
Del
OK
_reqs.cpython-310.pyc
1.38 KB
Del
OK
archive_util.cpython-310.pyc
6.02 KB
Del
OK
build_meta.cpython-310.pyc
18.13 KB
Del
OK
dep_util.cpython-310.pyc
839 B
Del
OK
depends.cpython-310.pyc
5.15 KB
Del
OK
discovery.cpython-310.pyc
20.41 KB
Del
OK
dist.cpython-310.pyc
31.68 KB
Del
OK
errors.cpython-310.pyc
2.41 KB
Del
OK
extension.cpython-310.pyc
5.75 KB
Del
OK
glob.cpython-310.pyc
3.63 KB
Del
OK
installer.cpython-310.pyc
3.9 KB
Del
OK
launch.cpython-310.pyc
893 B
Del
OK
logging.cpython-310.pyc
1.22 KB
Del
OK
monkey.cpython-310.pyc
4.27 KB
Del
OK
msvc.cpython-310.pyc
39.15 KB
Del
OK
namespaces.cpython-310.pyc
3.63 KB
Del
OK
package_index.cpython-310.pyc
31.32 KB
Del
OK
py312compat.cpython-310.pyc
608 B
Del
OK
sandbox.cpython-310.pyc
15.38 KB
Del
OK
unicode_utils.cpython-310.pyc
1.07 KB
Del
OK
version.cpython-310.pyc
319 B
Del
OK
warnings.cpython-310.pyc
3.7 KB
Del
OK
wheel.cpython-310.pyc
7.6 KB
Del
OK
windows_support.cpython-310.pyc
1016 B
Del
OK
Edit: extension.cpython-310.pyc
o �xe� � @ sp d dl Z d dlZd dlZd dlZd dlZddlmZ dd� ZeZ eej j�ZG dd� de�ZG dd � d e�Z dS ) � N� )� get_unpatchedc C s0 d} zt | dgd�j W dS ty Y dS w )z0 Return True if Cython can be imported. zCython.Distutils.build_ext� build_ext)�fromlistTF)� __import__r � Exception)Zcython_impl� r �H/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/extension.py�_have_cython s �r c s( e Zd ZdZ� fdd�Zdd� Z� ZS )� Extensiona� Describes a single extension module. This means that all source files will be compiled into a single binary file ``<module path>.<suffix>`` (with ``<module path>`` derived from ``name`` and ``<suffix>`` defined by one of the values in ``importlib.machinery.EXTENSION_SUFFIXES``). In the case ``.pyx`` files are passed as ``sources and`` ``Cython`` is **not** installed in the build environment, ``setuptools`` may also try to look for the equivalent ``.cpp`` or ``.c`` files. :arg str name: the full name of the extension, including any packages -- ie. *not* a filename or pathname, but Python dotted name :arg list[str] sources: list of source filenames, relative to the distribution root (where the setup script lives), in Unix form (slash-separated) for portability. Source files may be C, C++, SWIG (.i), platform-specific resource files, or whatever else is recognized by the "build_ext" command as source for a Python extension. :keyword list[str] include_dirs: list of directories to search for C/C++ header files (in Unix form for portability) :keyword list[tuple[str, str|None]] define_macros: list of macros to define; each macro is defined using a 2-tuple: the first item corresponding to the name of the macro and the second item either a string with its value or None to define it without a particular value (equivalent of "#define FOO" in source or -DFOO on Unix C compiler command line) :keyword list[str] undef_macros: list of macros to undefine explicitly :keyword list[str] library_dirs: list of directories to search for C/C++ libraries at link time :keyword list[str] libraries: list of library names (not filenames or paths) to link against :keyword list[str] runtime_library_dirs: list of directories to search for C/C++ libraries at run time (for shared extensions, this is when the extension is loaded). Setting this will cause an exception during build on Windows platforms. :keyword list[str] extra_objects: list of extra files to link with (eg. object files not implied by 'sources', static library that must be explicitly specified, binary resource files, etc.) :keyword list[str] extra_compile_args: any extra platform- and compiler-specific information to use when compiling the source files in 'sources'. For platforms and compilers where "command line" makes sense, this is typically a list of command-line arguments, but for other platforms it could be anything. :keyword list[str] extra_link_args: any extra platform- and compiler-specific information to use when linking object files together to create the extension (or to create a new static Python interpreter). Similar interpretation as for 'extra_compile_args'. :keyword list[str] export_symbols: list of symbols to be exported from a shared extension. Not used on all platforms, and not generally necessary for Python extensions, which typically export exactly one symbol: "init" + extension_name. :keyword list[str] swig_opts: any extra options to pass to SWIG if a source file has the .i extension. :keyword list[str] depends: list of files that the extension depends on :keyword str language: extension language (i.e. "c", "c++", "objc"). Will be detected from the source extensions if not provided. :keyword bool optional: specifies that a build failure in the extension should not abort the build process, but simply not install the failing extension. :keyword bool py_limited_api: opt-in flag for the usage of :doc:`Python's limited API <python:c-api/stable>`. :raises setuptools.errors.PlatformError: if 'runtime_library_dirs' is specified on Windows. (since v63) c s. |� dd�| _t� j||g|�R i |�� d S )N�py_limited_apiF)�popr �super�__init__)�self�name�sources�args�kw�� __class__r r r ~ s zExtension.__init__c C sN t � rdS | jp d}|�� dkrdnd}t�tjd|�}tt|| j ��| _ dS )z� Replace sources with .pyx extensions to sources with the target language extension. This mechanism allows language authors to supply pre-converted sources but to prefer the .pyx sources. N� zc++z.cppz.cz.pyx$) r �language�lower� functools�partial�re�sub�list�mapr )r �langZ target_extr r r r �_convert_pyx_sources_to_lang� s z&Extension._convert_pyx_sources_to_lang)�__name__� __module__�__qualname__�__doc__r r! � __classcell__r r r r r s _r c @ s e Zd ZdZdS )�Libraryz=Just like a regular Extension, but built as a library insteadN)r"