⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
distutils
/
__pycache__
/
View File Name :
util.cpython-310.pyc
o bc(R @ s d Z ddlZddlZddlZddlZddlZddlZddlm Z ddl mZ ddlm Z ddlmZ ddlmZ dd Zd d Zdd Zdd Zdadd Zdd Zd*ddZd a aadd Zdd Zd+ddZdd Z d,d d!Zd"d# Z d-d$d%Z! d.d&d'Z"G d(d) d)Z#dS )/zudistutils.util Miscellaneous utility functions -- anything that doesn't fit into one of the other *util.py modules. N)DistutilsPlatformError)newer)spawn)log)DistutilsByteCompileErrorc C s t jdkr#dtj v rdS dtj v rdS dtj v r dS tjS dt jv r-t jd S t jd ks7tt d s:tjS t \} }}}}| dd} | d d}| dd}| dd dkred| |f S | dd dkr|d dkrd} dt |d d |dd f }ddd}|d|tj 7 }nL| dd dkrdd lm } | S | dd! d"krd"} td#tj}||}|r| }n| dd! d$krddl} ddl} | | j | ||\} }}d%| ||f S )&a Return a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by 'os.uname()'), although the exact information included depends on the OS; eg. on Linux, the kernel version isn't particularly important. Examples of returned values: linux-i586 linux-alpha (?) solaris-2.6-sun4u Windows will return one of: win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'. ntamd64 win-amd64z(arm) win-arm32z(arm64)z win-arm64_PYTHON_HOST_PLATFORMposixuname/ _-N linuxz%s-%ssunosr 5solarisz%d.%s 32bit64bit)il z.%saix)aix_platform cygwinz[\d.]+darwinz%s-%s-%s)osnamesysversionlowerplatformenvironhasattrr replaceintmaxsize_aix_supportr recompileASCIImatchgroup_osx_supportdistutils.sysconfigget_platform_osx sysconfigget_config_vars)osnamehostreleaser$ machinebitnessr rel_remr2 distutils r? %/usr/lib/python3.10/distutils/util.pyget_host_platform sT rA c C s4 t jdkrdddd} | t jdpt S t S )Nr win32r r )x86x64armVSCMD_ARG_TGT_ARCH)r! r" getr' rA )TARGET_TO_PLATr? r? r@ get_platformc s rI c C s t jdkr| S | s| S | d dkrtd| | d dkr#td| | d}d|v r5|d d|v s,|s:t jS t jj| S )a Return 'pathname' as a name that will work on the native filesystem, i.e. split it on '/' and put it back together again using the current directory separator. Needed because filenames in the setup script are always supplied in Unix style, and have to be converted to the local convention before we can actually use them in the filesystem. Raises ValueError on non-Unix-ish systems if 'pathname' either starts or ends with a slash. r r zpath '%s' cannot be absolutezpath '%s' cannot end with '/'.)r! sep ValueErrorsplitremovecurdirpathjoin)pathnamepathsr? r? r@ convert_pathn s rU c C s t jdkrt j|st j| |S t j| |dd S t jdkr=t j|\}}|d dkr6|dd }t j| |S tdt j )a Return 'pathname' with 'new_root' prepended. If 'pathname' is relative, this is equivalent to "os.path.join(new_root,pathname)". Otherwise, it requires making 'pathname' relative and then joining the two, which is tricky on DOS/Windows and Mac OS. r Nr r \z!nothing known about platform '%s')r! r" rQ isabsrR splitdriver )new_rootrS driverQ r? r? r@ change_root s r\ c C sv t rdS tjdkr,dtjvr,zddl} | t d tjd<