/usr/lib/python3/dist-packages/setuptools/command/__pycache__
NameSizeModeActions
alias.cpython-310.pyc23450644editdlrm
bdist_egg.cpython-310.pyc130710644editdlrm
bdist_rpm.cpython-310.pyc15580644editdlrm
build_clib.cpython-310.pyc24320644editdlrm
build_ext.cpython-310.pyc98610644editdlrm
build_py.cpython-310.pyc82340644editdlrm
develop.cpython-310.pyc61210644editdlrm
dist_info.cpython-310.pyc13630644editdlrm
easy_install.cpython-310.pyc651400644editdlrm
egg_info.cpython-310.pyc227190644editdlrm
install.cpython-310.pyc41690644editdlrm
install_egg_info.cpython-310.pyc28940644editdlrm
install_lib.cpython-310.pyc51090644editdlrm
install_scripts.cpython-310.pyc23980644editdlrm
py36compat.cpython-310.pyc45050644editdlrm
register.cpython-310.pyc8090644editdlrm
rotate.cpython-310.pyc24760644editdlrm
saveopts.cpython-310.pyc8950644editdlrm
sdist.cpython-310.pyc69240644editdlrm
setopt.cpython-310.pyc46570644editdlrm
test.cpython-310.pyc81010644editdlrm
upload.cpython-310.pyc7820644editdlrm
upload_docs.cpython-310.pyc61510644editdlrm
__init__.cpython-310.pyc3430644editdlrm
Edit: /usr/lib/python3/dist-packages/setuptools/command/__pycache__/rotate.cpython-310.pyc (2476B)
o ƒ_¶aPã@sTddlmZddlmZddlmZddlZddlZddlm Z Gdd„de ƒZ dS)é)Ú convert_path)Úlog)ÚDistutilsOptionErrorN)ÚCommandc@s8eZdZdZdZgd¢ZgZdd„Zdd„Zdd „Z d S) ÚrotatezDelete older distributionsz2delete older distributions, keeping N newest files))zmatch=Úmzpatterns to match (required))z dist-dir=Údz%directory where the distributions are)zkeep=Úkz(number of matching distributions to keepcCsd|_d|_d|_dS)N)ÚmatchÚdist_dirÚkeep)Úself©rú;/usr/lib/python3/dist-packages/setuptools/command/rotate.pyÚinitialize_optionss zrotate.initialize_optionsc CsŒ|jdur tdƒ‚|jdurtdƒ‚zt|jƒ|_Wnty+}ztdƒ|‚d}~wwt|jtƒr>dd„|j d¡Dƒ|_| dd¡dS) NzQMust specify one or more (comma-separated) match patterns (e.g. '.zip' or '.egg')z$Must specify number of files to keepz--keep must be an integercSsg|]}t| ¡ƒ‘qSr)rÚstrip)Ú.0ÚprrrÚ (s ÿz+rotate.finalize_options..ú,Úbdist)r r ) r rr ÚintÚ ValueErrorÚ isinstanceÚstrÚsplitÚset_undefined_options)r ÚerrrÚfinalize_optionss" ÿ  €ÿ  ÿzrotate.finalize_optionscCsÌ| d¡ddlm}|jD]U}|j ¡d|}|tj |j|¡ƒ}dd„|Dƒ}|  ¡|  ¡t   dt |ƒ|¡||jd…}|D]\}}t   d|¡|jsbtj |¡r]t |¡qDt |¡qDqdS) NÚegg_infor)ÚglobÚ*cSsg|] }tj |¡|f‘qSr)ÚosÚpathÚgetmtime)rÚfrrrr4szrotate.run..z%d file(s) matching %sz Deleting %s)Ú run_commandr r Ú distributionÚget_namer"r#Újoinr ÚsortÚreverserÚinfoÚlenr Údry_runÚisdirÚshutilÚrmtreeÚunlink)r r ÚpatternÚfilesÚtr%rrrÚrun-s&        €ú÷z rotate.runN) Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú descriptionÚ user_optionsÚboolean_optionsrrr6rrrrr s r) Údistutils.utilrÚ distutilsrÚdistutils.errorsrr"r0Ú setuptoolsrrrrrrÚs