U
cf\I @ s d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlm Z ddl
mZmZm
Z
ddlmZ ddlmZmZmZmZmZmZ eeZd Zed Zd
Zeddd Z dd
ee !dD Z"dd Z#e#Z$G dd de%Z&dS ) )BytesION)ZipInfo ) sysconfigdetect_encodingZipFile)finder)FileOperatorget_export_entryconvert_pathget_executableget_platformin_venva
s ^#!.*pythonw?[0-9.]*([ ].*)?$z# -*- coding: utf-8 -*-
import re
import sys
from %(module)s import %(import_name)s
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(%(func)s())
.c C s" i | ]}|j d r|j |jqS )z.exe)nameendswithbytes).0r r I/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/distlib/scripts.py
@ s r c C sX d| krT| drB| dd\}}d|krT| dsTd||f } n| dsTd| } | S )N z
/usr/bin/env r "z%s "%s"z"%s")
startswithsplit)
executableenv_executabler r r enquote_executableG s
r c @ s e Zd ZdZeZdZd*ddZdd Ze j
d rBd
d Zdd
Z
dd Zd+ddZdd ZeZdd Zdd ZdZdd Zd,ddZdd Zed d! Zejd"d! Zejd#ksejd krejd#krd$d% Zd-d&d'Z d.d(d)Z!dS )/ScriptMakerz_
A class to copy or create scripts from source scripts or callable
specifications.
NTFc C s || _ || _|| _d| _d| _tjdkp:tjdko:tjdk| _t d| _
|pRt|| _tjdkprtjdkortjdk| _
tj| _d S )NFposixjava)r X.Ynt)
source_dir
target_dir
add_launchersforceclobberosr _nameset_modesetvariantsr _fileop_is_ntsysversion_info)selfr&