/usr/lib/python3.10/distutils/command/__pycache__
Edit: /usr/lib/python3.10/distutils/command/__pycache__/install_lib.cpython-310.pyc (5244B)
o
bc! @ sL d Z ddlZddlZddlZddlmZ ddlmZ dZ G dd deZ
dS )zkdistutils.command.install_lib
Implements the Distutils 'install_lib' command
(install all Python modules). N)Command)DistutilsOptionErrorz.pyc @ sx e Zd ZdZg dZg dZddiZdd Zdd Zd
d Z dd
Z
dd Zdd Zdd Z
dd Zdd Zdd ZdS )install_libz7install all Python modules (extensions and pure Python)))zinstall-dir=dzdirectory to install to)z
build-dir=bz'build directory (where to install from))forcefz-force installation (overwrite existing files))compileczcompile .py to .pyc [default])
no-compileNzdon't compile .py files)z optimize=Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])
skip-buildNzskip the build steps)r r r
r r c C s. d | _ d | _d| _d | _d | _d | _d | _d S )Nr )install_dir build_dirr r optimize
skip_build multiarchself r 4/usr/lib/python3.10/distutils/command/install_lib.pyinitialize_options3 s
zinstall_lib.initialize_optionsc
C s | dddddddd | jd u rd | _| jd u rd
| _t| jts@zt| j| _| jdvr0tW d S ttfy? tdw d S )
Ninstall) build_libr )r r )r r )r r )r r )r r )r r TF)r zoptimize must be 0, 1, or 2)set_undefined_optionsr r
isinstanceintAssertionError
ValueErrorr r r r r finalize_options= s.
zinstall_lib.finalize_optionsc C s8 | | }|d ur| j r| | d S d S d S N)buildr distributionhas_pure_modulesbyte_compile)r outfilesr r r runX s
zinstall_lib.runc C s: | j s| j r
| d | j r| d d S d S d S )Nbuild_py build_ext)r r$ r% run_commandhas_ext_modulesr r r r r# h s
zinstall_lib.buildc C sH t j| jrdd l}| j|j_| | j| j }|S |
d| j d S )Nr z3'%s' does not exist -- no Python modules to install)ospathisdirr distutils.dir_utilr dir_util
_multiarch copy_treer warn)r distutilsr' r r r r o s
zinstall_lib.installc C sv t jr
| d d S ddlm} | dj}| jr$||d| j|| j d | j
dkr9||| j
| j|| j| j d d S d S )Nz%byte-compiling is disabled, skipping.r )r&