ó ˜#Y]c@spddlmZddlZddlZddlZddlmZddlm Z ej dƒZ d„Z dS(iÿÿÿÿ(tprint_functionN(t WheelError(t WheelFiles6^(?P(?P.+?)-(?P\d.*?))\.dist-info$c CsBgtj|ƒD]<}tjjtjj||ƒƒrtj|ƒr|^q}t|ƒdkr|tdj |ƒƒ‚n|sštdj |ƒƒ‚n|d}tj|ƒj dƒ}|rÓ|d|7}nt tjj||dƒƒ`}g|D].}|j dƒrû|j d ƒdjƒ^qû} | sMtd j |ƒƒ‚nWd QXtd „| Dƒƒ} td „| Dƒƒ} td„| Dƒƒ} djdj| ƒdj| ƒdj| ƒgƒ} tjj|dj || ƒƒ}t|dƒ:}tdj |ƒddƒtjjƒ|j|ƒWd QXtdƒd S(sBRepack a previously unpacked wheel directory into a new wheel file. The .dist-info/WHEEL file must contain one or more tags so that the target wheel file name can be determined. :param directory: The unpacked wheel directory :param dest_dir: Destination directory (defaults to the current directory) is+Multiple .dist-info directories found in {}s%No .dist-info directories found in {}itnamevert-tWHEELsTag: t sCNo tags present in {}/WHEEL; cannot determine target wheel filenameNcSs#h|]}|jdƒd’qS(Ri(tsplit(t.0ttag((s9/opt/awscli/lib/python2.7/site-packages/wheel/cli/pack.pys .s cSs#h|]}|jdƒd’qS(Ri(R(RR ((s9/opt/awscli/lib/python2.7/site-packages/wheel/cli/pack.pys /s cSs#h|]}|jdƒd’qS(Ri(R(RR ((s9/opt/awscli/lib/python2.7/site-packages/wheel/cli/pack.pys 0s t.s {}-{}.whltwsRepacking wheel as {}...tendttOK(tostlistdirtpathtisdirtjoint DIST_INFO_REtmatchtlenRtformattgrouptopent startswithRtrstriptsortedRtprinttsyststdouttflusht write_files(t directorytdest_dirt build_numbertfntdist_info_dirst dist_info_dirt name_versiontftlinettagstimplstabiverst platformsttaglinet wheel_pathtwf((s9/opt/awscli/lib/python2.7/site-packages/wheel/cli/pack.pytpack s2 < !; 3! ( t __future__Rtos.pathRtreRt wheel.cliRtwheel.wheelfileRtcompileRR2(((s9/opt/awscli/lib/python2.7/site-packages/wheel/cli/pack.pyts