ok
Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/ |
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/scripts.pyo |
� �2{Yc @ s� d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z d d l m Z d d l m Z m Z m Z m Z m Z e j e � Z d j � Z e j d � Z d Z d e f d � � YZ d S( i����( t BytesIONi ( t sysconfigt fsencodet detect_encodingt ZipFile( t finder( t FileOperatort get_export_entryt convert_patht get_executablet in_venvs� <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="%s" type="win32"/> <!-- Identify the application security requirements. --> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="asInvoker" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> </assembly>s ^#!.*pythonw?[0-9.]*([ ].*)?$s{ # -*- coding: utf-8 -*- if __name__ == '__main__': import sys, re def _resolve(module, func): __import__(module) mod = sys.modules[module] parts = func.split('.') result = getattr(mod, parts.pop(0)) for p in parts: result = getattr(result, p) return result try: sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) func = _resolve('%(module)s', '%(func)s') rc = func() # None interpreted as 0 except Exception as e: # only supporting Python >= 2.6 sys.stderr.write('%%s\n' %% e) rc = 1 sys.exit(rc) t ScriptMakerc B s� e Z d Z e Z d Z e e d d � Z d � Z d d d � Z d � Z e Z d � Z d � Z d d � Z d � Z e d � � Z e j d � � Z e j d k r� d � Z n d d � Z d d � Z RS( s_ A class to copy or create scripts from source scripts or callable specifications. c C sg | | _ | | _ | | _ t | _ t | _ t j d k | _ t d � | _ | p] t | � | _ d S( Nt posixt s X.Y( R s X.Y( t source_dirt target_dirt add_launcherst Falset forcet clobbert ost namet set_modet sett variantsR t _fileop( t selfR R R t dry_runt fileop( ( sL /opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/scripts.pyt __init__K s c C sg | j d t � rc t j d k rc t j j | � \ } } | j d d � } t j j | | � } n | S( Nt guit ntt pythont pythonw( t getR R R t patht splitt replacet join( R t executablet optionst dnt fn( ( sL /opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/scripts.pyt _get_alternate_executableW s !R c C s� t } | j r! | j } t } n� t j � s9 t � } nq t � rp t j j t j d � d t j d � � } n: t j j t j d � d t j d � t j d � f � } | r� | j | | � } n | r� d | k r� d | } n t | � } d | | d } y | j d � Wn! t k r6t d | � � n X| d k r�y | j | � Wq�t k r}t d | | f � � q�Xn | S( Nt scriptss python%st EXEt BINDIRs python%s%st VERSIONt s "%s"s #!s s utf-8s, The shebang (%r) is not decodable from utf-8s? The shebang (%r) is not decodable from the script encoding (%r)( t TrueR'