Viewing File: /usr/lib/python3.6/site-packages/setuptools/command/__pycache__/alias.cpython-36.opt-1.pyc

3

Xoöhz	ã@sPddlmZddlmZddlmZmZmZdd„ZGdd„deƒZ	dd	„Z
d
S)é)ÚDistutilsOptionError)Úmap)Úedit_configÚoption_baseÚconfig_filecCs8xdD]}||krt|ƒSqW|jƒ|gkr4t|ƒS|S)z4Quote an argument for later parsing by shlex.split()ú"ú'ú\ú#)rrr	r
)ÚreprÚsplit)ÚargÚc©rú/usr/lib/python3.6/alias.pyÚshquotes
rc@sHeZdZdZdZdZdgejZejdgZdd„Z	d	d
„Z
dd„Zd
S)Úaliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsTÚremoveÚrúremove (unset) the aliascCstj|ƒd|_d|_dS)N)rÚinitialize_optionsÚargsr)Úselfrrrrs
zalias.initialize_optionscCs*tj|ƒ|jr&t|jƒdkr&tdƒ‚dS)NézFMust specify exactly one argument (the alias name) when using --remove)rÚfinalize_optionsrÚlenrr)rrrrr#s
zalias.finalize_optionscCsÔ|jjdƒ}|jsDtdƒtdƒx|D]}tdt||ƒƒq(WdSt|jƒdkr”|j\}|jrfd}q¸||kr‚tdt||ƒƒdStd|ƒdSn$|jd}djtt	|jdd…ƒƒ}t
|jd||ii|jƒdS)	NÚaliaseszCommand Aliasesz---------------zsetup.py aliasrz No alias definition found for %rrú )
ZdistributionZget_option_dictrÚprintÚformat_aliasrrÚjoinrrrÚfilenameZdry_run)rrrÚcommandrrrÚrun+s&

z	alias.runN)rrr)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚdescriptionZcommand_consumes_argumentsrZuser_optionsZboolean_optionsrrr#rrrrrsrcCsZ||\}}|tdƒkrd}n,|tdƒkr0d}n|tdƒkrBd}nd|}||d|S)	NÚglobalz--global-config Úuserz--user-config ZlocalÚz
--filename=%rr)r)ÚnamerÚsourcer"rrrrFsrN)Zdistutils.errorsrZsetuptools.extern.six.movesrZsetuptools.command.setoptrrrrrrrrrrÚ<module>s

4
Back to Directory File Manager