pCah b d Z ddlmZmZ ddlmZ ddlmZ ddlZddl Z ddl Z ddlZddlZddl mZmZ ddlmZ ddlmZ d d lmZ ddlmZmZ d Zd Zd Zd Z G d de Ze d Z!d Z"d Z#d Z$dddZ%d Z&d Z'd Z(g dZ) d dZ*dS )!z6setuptools.command.bdist_egg Build .egg distributions )remove_treemkpath)log)CodeTypeN)get_build_platformDistribution)Library)Command )ensure_directory)get_pathget_python_versionc t d S )Npurelib)r /builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/command/bdist_egg.py_get_purelibr s Ir c d| v r%t j | d } | d r | d d } | S )N.r modulei)ospathsplitextendswith)filenames r strip_moduler sM h7##H--a0"" !CRC=Or c # K t j | D ]5\ }}}| | |||fV 6dS )zbDo os.walk in a reproducible way, independent of indeterministic filesystem readdir order N)r walksort)dirbasedirsfiless r sorted_walkr% " s` WS\\ dE D% r c t j d }t |d 5 }| || z d d d d S # 1 swxY w Y d S )Na def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, importlib.util __file__ = pkg_resources.resource_filename(__name__, %r) __loader__ = None; del __bootstrap__, __loader__ spec = importlib.util.spec_from_file_location(__name__,__file__) mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) __bootstrap__() w)textwrapdedentlstripopenwrite)resourcepyfile_stub_templatefs r write_stubr1 , s _ & VXX fc +a )***+ + + + + + + + + + + + + + + + + +s AA!$A!c e Zd ZdZdddd e z fdddd gZg d Zd Zd Zd Z d Z d Zd Zd Z d Zd Zd Zd ZdS ) bdist_eggzcreate an "egg" distribution)z bdist-dir=bz1temporary directory for creating the distributionz plat-name=pz;platform name to embed in generated filenames (default: %s))exclude-source-filesNz+remove all .py files from the generated egg) keep-tempkzPkeep the pseudo-installation tree around after creating the distribution archive)z dist-dir=dz-directory to put final built distributions in) skip-buildNz2skip rebuilding everything (for testing/debugging))r7 r: r6 c h d | _ d | _ d| _ d | _ d| _ d | _ d | _ d S )Nr ) bdist_dir plat_name keep_tempdist_dir skip_build egg_outputexclude_source_filesselfs r initialize_optionszbdist_egg.initialize_optionsS s: $(!!!r c b | d x}| _ |j | _ | j ?| d j }t j |d | _ | j t | _ | dd | j t d d |j |j t | j o| j }t j | j |dz | _ d S d S )Negg_infobdistegg)r? r? z.egg)get_finalized_commandei_cmdrG r<