Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3
\5Q ã @ s d Z ddlZddlZddlZddlZddlZddlmZ ddl m
Z
ddlmZ ddl
mZ ddlmZ dd „ Zd
d„ Zdd
„ Zdadd„ Zdd„ Zd(dd„Zd a aadd„ Zdd„ Zd)dd„Zdd„ Zd*dd„Zd d!„ Zd+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 jdkrnd} tjj| ƒ}|d)kr(tjS tjjd|ƒ}tj|t| ƒ |… jƒ }|dkr\dS |dkrhdS tjS d t jkr‚t jd S t jd
ks˜t t dƒ ržtjS t j
ƒ \}}}}}|jƒ jdd
ƒ}|jddƒ}|jddƒ}|dd… dkrôd||f S |dd… dk�rV|d dk�rd}dt|d ƒd |dd… f }dddœ} |d| tj
7 }nº|dd … d!k�rtd||f S |dd… d"k�r”d#|||f S |dd$… d%k�rÒd%}tjd&tjƒ}
|
j|ƒ}|�r|jƒ }n>|dd$… d'k�rddl}ddl}
|j|
jjƒ |||ƒ\}}}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. for IRIX
the architecture isn't particularly important (IRIX only runs on SGI
hardware), but for Linux the kernel version isn't particularly
important.
Examples of returned values:
linux-i586
linux-alpha (?)
solaris-2.6-sun4u
irix-5.3
irix64-6.2
Windows will return one of:
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
win-ia64 (64bit Windows on Itanium)
win32 (all others - specifically, sys.platform is returned)
For other non-POSIX platforms, currently just returns 'sys.platform'.
Úntz bit (é ú)Úamd64z win-amd64Úitaniumzwin-ia64Ú_PYTHON_HOST_PLATFORMÚposixÚunameú/Ú ú Ú_ú-Né Úlinuxz%s-%sÚsunosr Ú5Úsolarisz%d.%sé é Ú32bitÚ64bit)iÿÿÿl ÿÿÿÿ z.%sé ÚirixÚaixz%s-%s.%sé Úcygwinz[\d.]+Údarwinz%s-%s-%séÿÿÿÿ)ÚosÚnameÚsysÚversionÚfindÚplatformÚlenÚlowerÚenvironÚhasattrr ÚreplaceÚintÚmaxsizeÚreÚcompileÚASCIIÚmatchÚgroupÚ_osx_supportZdistutils.sysconfigÚget_platform_osxÚ sysconfigÚget_config_vars)ÚprefixÚiÚjÚlookÚosnameÚhostÚreleaser' ÚmachineÚbitnessÚrel_reÚmr6 Ú distutils© rF ú/usr/lib64/python3.6/util.pyÚget_platform sX
rH c C s~ t jdkr| S | s| S | d dkr.td| ƒ‚| d dkrFtd| ƒ‚| jdƒ}xd|krf|jdƒ qRW |srt 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 absoluter zpath '%s' cannot end with '/'Ú.r# )r$ ÚsepÚ
ValueErrorÚsplitÚremoveÚcurdirÚpathÚjoin)ÚpathnameÚpathsrF rF rG Úconvert_patho s
rS c C sŽ t jdkr