efddlmZddlmcmZddlZddlZddlZddl m Z ddl m Z ddl mZeZd d ZGd d ejZdS) )logN)chain)metadata)_ORIGINAL_SUBCOMMANDSc#KtjdD]&}||D]}|V'dS)z%Find all files under revision controlzsetuptools.file_finders)groupN)r entry_pointsload)dirnameepitems x/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/command/sdist.py walk_revctrlrs_#*CDDDBGGIIg&&  DJJJJ ceZdZdZgdZiZgdZedeDZdZ dZ dZ dZ e ejd Zfd Zfd Zd Zd ZdZdZfdZdZdZdZdZxZS)sdistz=Smart sdist that finds anything supported by revision control))zformats=Nz6formats for source distribution (comma-separated list))z keep-tempkz@keep the distribution tree around after creating archive file(s))z dist-dir=dzFdirectory to put the source distribution archive(s) in [default: dist])zowner=uz@Owner name used when creating a tar file [default: current user])zgroup=gzAGroup name used when creating a tar file [default: current group])r z.rstz.txtz.mdc#@K|]}d|VdS)z README{0}N)format).0exts r zsdist.3s0IIK&&s++IIIIIIrc|d|d}|j|_|jtj|jd|| D]}||| t|j dg}|j D] }dd|f}||vr||!dS)Negg_infoz SOURCES.txt dist_filesrr ) run_commandget_finalized_commandfilelistappendospathjoinr check_readmeget_sub_commandsmake_distributiongetattr distribution archive_files)selfei_cmdcmd_namer!filedatas rrunz sdist.run5s $$$++J77  RW\\&/=IIJJJ --// ' 'H   X & & & &    T. bAA & ( (DR&D:%%!!$''' ( (rcltj||dSN)origrinitialize_options_default_to_gztarr/s rr8zsdist.initialize_optionsHs0 %%d+++      rc:tjdkrdSdg|_dS)N)rbetargztar)sys version_infoformatsr:s rr9zsdist._default_to_gztarMs#  3 3 3 Fy rc|5tj|ddddS#1swxYwYdS)z% Workaround for #516 N)_remove_os_linkr7rr+r:s rr+zsdist.make_distributionSs ! ! # # / / J ( ( . . . / / / / / / / / / / / / / / / / / /s AA Ac#KGdd}ttd|} t`n#t$rYnwxYw dV||urt td|dSdS#||urt td|wwxYw)zG In a context, remove and restore os.link if it exists ceZdZdS)&sdist._remove_os_link..NoValueN)__name__ __module__ __qualname__rrNoValuerGas DrrLlinkN)r,r&rM Exceptionsetattr)rLorig_vals rrDzsdist._remove_os_linkZs        2vw//     D  . EEEw&&FH-----'&xw&&FH----'s/ <<A""A?cpt|dSr6)super add_defaults _add_defaults_build_sub_commandsr/ __class__s rrSzsdist.add_defaultsos1  --/////rcttjdr|jddSdS)Nzpyproject.toml)rR_add_defaults_optionalr&r'isfiler$r%rUs rrXzsdist._add_defaults_optionalssW &&((( 7>>* + + 3 M !1 2 2 2 2 2 3 3rc|jrk|d}|j||||dSdS)zgetting python filesbuild_pyN)r-has_pure_modulesr#r$extendget_source_files_add_data_files_safe_data_filesr/r[s r_add_defaults_pythonzsdist._add_defaults_pythonxs   - - / / B11*==H M !:!:!.s1DD!**1--DDDDDDrc3^K|](}t|d|V)dS)r^N)hasattrr^)rrfs rrz9sdist._add_defaults_build_sub_commands..s>VV!wqBT7U7UV##%%VVVVVVr)r#setr*rr$r]r from_iterable)r/rd missing_cmdscmdsfiless` rrTz&sdist._add_defaults_build_sub_commandss**73351133447LL DDDD|DDDVVtVVV U07788888rc|jS)a Since the ``sdist`` class is also used to compute the MANIFEST (via :obj:`setuptools.command.egg_info.manifest_maker`), there might be recursion problems when trying to obtain the list of data_files and ``include_package_data=True`` (which in turn depends on the files included in the MANIFEST). To avoid that, ``manifest_maker`` should be able to overwrite this method and avoid recursive attempts to build/analyze the MANIFEST. ) data_filesras rr`zsdist._safe_data_filess ""rcN|jd|DdS)zA Add data files as found in build_py.data_files. c3jK|].\}}}}|D]$}tj||V%/dSr6)r&r'r()r_src_dir filenamesnames rrz(sdist._add_data_files..se  (7Ay!   GLL$ ' '       rN)r$r])r/ros rr_zsdist._add_data_filessD   ,6        rc tdS#t$rtjdYdSwxYw)Nz&data_files contains unexpected objects)rR_add_defaults_data_files TypeErrorrwarnrUs rrwzsdist._add_defaults_data_filessY ? GG , , . . . . . ? ? ? H= > > > > > > ?s %AAc|jD]$}tj|rdS%|dd|jzdS)Nz,standard file not found: should have one of z, )READMESr&r'existsryr()r/fs rr)zsdist.check_readmesm  Aw~~a     II>4>$#7#7 . IdOOO NN; - - - "":..@@FFFFFrctj|jsdSt |jd5}|}dddn #1swxYwY|dkS)NFrbz+# file GENERATED by distutils, do NOT edit )r&r'rYmanifestopenreadlineencode)r/fp first_lines r_manifest_is_not_generatedz sdist._manifest_is_not_generatedsw~~dm,, 5 $- & & '"J ' ' ' ' ' ' ' ' ' ' ' ' ' ' 'KRRTTTTsAA!$A!ctjd|jt|jd}|D]} |d}n'#t $rtjd|zYrs&&&&&&&&& !!!!!!((((((AAAAADJAAAAAr