Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
extension.cpython-313.pyc133 linesDownload Raw Back to __pycache__
1�

2��j�����SSKJr SSKrSSKrSSKJr SSKJr SSKJ	r	 SSK3Jr SSKr
SSKr
SSKr
SSjr\r\(aSS	KJr O\"\
R(R$5r"S4S\5r"SS
\5rg)�)�annotationsN)�Iterable)�
TYPE_CHECKING)�StrPath�)�
get_unpatchedc�T�Sn[US/S9R g![a gf=f)z(5Return True if Cython can be imported.6zCython.Distutils.build_ext�	build_ext)�fromlistFT)�7__import__r8�	Exception)�cython_impls �ZD:\code\apps\devtools\python\user_packages\Python313\site-packages\setuptools/extension.py�_have_cythonrs9��/�K���;�+��7�A�A�������s��9'�')�	Extensionc�v^�\rSrSr%SrS\S'S\S'S\S'S\S'S	S10.SU4SjjjrSrS
rU=r	$)r�'a�11Describes a single extension module.12 13This means that all source files will be compiled into a single binary file14``<module path>.<suffix>`` (with ``<module path>`` derived from ``name`` and15``<suffix>`` defined by one of the values in16``importlib.machinery.EXTENSION_SUFFIXES``).17 18In the case ``.pyx`` files are passed as ``sources and`` ``Cython`` is **not**19installed in the build environment, ``setuptools`` may also try to look for the20equivalent ``.cpp`` or ``.c`` files.21 22:arg str name:23  the full name of the extension, including any packages -- ie.24  *not* a filename or pathname, but Python dotted name25 26:arg Iterable[str | os.PathLike[str]] sources:27  iterable of source filenames, (except strings, which could be misinterpreted28  as a single filename), relative to the distribution root29  (where the setup script lives), in Unix form (slash-separated)30  for portability.  Source files may be C, C++, SWIG (.i),31  platform-specific resource files, or whatever else is recognized32  by the "build_ext" command as source for a Python extension.33 34:keyword list[str] include_dirs:35  list of directories to search for C/C++ header files (in Unix36  form for portability)37 38:keyword list[tuple[str, str|None]] define_macros:39  list of macros to define; each macro is defined using a 2-tuple:40  the first item corresponding to the name of the macro and the second41  item either a string with its value or None to42  define it without a particular value (equivalent of "#define43  FOO" in source or -DFOO on Unix C compiler command line)44 45:keyword list[str] undef_macros:46  list of macros to undefine explicitly47 48:keyword list[str] library_dirs:49  list of directories to search for C/C++ libraries at link time50 51:keyword list[str] libraries:52  list of library names (not filenames or paths) to link against53 54:keyword list[str] runtime_library_dirs:55  list of directories to search for C/C++ libraries at run time56  (for shared extensions, this is when the extension is loaded).57  Setting this will cause an exception during build on Windows58  platforms.59 60:keyword list[str] extra_objects:61  list of extra files to link with (eg. object files not implied62  by 'sources', static library that must be explicitly specified,63  binary resource files, etc.)64 65:keyword list[str] extra_compile_args:66  any extra platform- and compiler-specific information to use67  when compiling the source files in 'sources'.  For platforms and68  compilers where "command line" makes sense, this is typically a69  list of command-line arguments, but for other platforms it could70  be anything.71 72:keyword list[str] extra_link_args:73  any extra platform- and compiler-specific information to use74  when linking object files together to create the extension (or75  to create a new static Python interpreter).  Similar76  interpretation as for 'extra_compile_args'.77 78:keyword list[str] export_symbols:79  list of symbols to be exported from a shared extension.  Not80  used on all platforms, and not generally necessary for Python81  extensions, which typically export exactly one symbol: "init" +82  extension_name.83 84:keyword list[str] swig_opts:85  any extra options to pass to SWIG if a source file has the .i86  extension.87 88:keyword list[str] depends:89  list of files that the extension depends on90 91:keyword str language:92  extension language (i.e. "c", "c++", "objc"). Will be detected93  from the source extensions if not provided.94 95:keyword bool optional:96  specifies that a build failure in the extension should not abort the97  build process, but simply not install the failing extension.98 99:keyword bool py_limited_api:100  opt-in flag for the usage of :doc:`Python's limited API <python:c-api/stable>`.101 102:raises setuptools.errors.PlatformError: if ``runtime_library_dirs`` is103  specified on Windows. (since v63)104�str�105_full_name�bool�_links_to_dynamic�_needs_stub�106_file_nameF)�py_limited_apic�<>�X0l[TU]"UU/UQ70UD6 g)N)r�super�__init__)�self�name�sourcesr�args�kw�	__class__s      �rr�Extension.__init__�s2���-��
�����	107��	108��		109�c��[5(agUR=(d SnUR5S:XaSOSn[R"[110RSU5n[[X0R55Ul	g)z�111Replace sources with .pyx extensions to sources with the target112language extension. This mechanism allows language authors to supply113pre-converted sources but to prefer the .pyx sources.114N�zc++z.cppz.cz.pyx$)115r�language�lower�	functools�partial�re�sub�list�mapr )r�lang�116target_extr-s    r�_convert_pyx_sources_to_lang�&Extension._convert_pyx_sources_to_lang�s]���>�>���}�}�"���#�z�z�|�u�4�V�$�117���������<���C��\�\�2�3��r%)rr )rrr zIterable[StrPath]rr�return�None)118�__name__�119__module__�__qualname__�__firstlineno__�__doc__�__annotations__rr2�__static_attributes__�
__classcell__)r#s@rrr'sa���^�H�O������O� %�120��121�#�122�123�124�125�126�127�$4�4r%rc��\rSrSrSrSrg)�Library�z=Just like a regular Extension, but built as a library instead�N)r6r7r8r9r:r<rAr%rr?r?�s��Gr%r?)r4r)�128__future__rr*r,�collections.abcr�typingr�setuptools._pathr�monkeyr�distutils.core�	distutils�distutils.errors�distutils.extensionr�129have_pyrexr�130_Extension�corer?rAr%r�<module>rNsf��"��	�$� �$�!����131��132��6��y�~�~�7�7�8�J�H4�133�H4�VH�i�Hr%
codekingpro/portable-devtools · Team Ai