File: //usr/lib/python3.9/distutils/command/__pycache__/install_lib.cpython-39.pyc
a
�0`�! � @ sL d Z ddlZddlZddlZddlmZ ddlmZ dZ G dd� de�Z
dS )zkdistutils.command.install_lib
Implements the Distutils 'install_lib' command
(install all Python modules).� N)�Command)�DistutilsOptionErrorz.pyc @ sx e Zd ZdZg d�Zg d�ZddiZdd� 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))�force�fz-force installation (overwrite existing files))�compile�czcompile .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� multiarch��self� r �3/usr/lib/python3.9/distutils/command/install_lib.py�initialize_options3 s zinstall_lib.initialize_optionsc
C s� | � dddddddd� | jd u r(d | _| jd u r8d
| _t| jt�s�zt| j�| _| jdvr`t�W n ttfy� td��Y n0 d S )
N�install)� build_libr )r r )r r )r r )r r )r r )r r TF)r � � zoptimize must be 0, 1, or 2)Zset_undefined_optionsr r �
isinstance�int�AssertionError�
ValueErrorr r r r r �finalize_options= s( �
zinstall_lib.finalize_optionsc C s0 | � � | �� }|d ur,| j�� r,| �|� d S �N)�buildr �distribution�has_pure_modules�byte_compile)r �outfilesr r r �runX s zinstall_lib.runc C s2 | j s.| j�� r| �d� | j�� r.| �d� d S )N�build_py� build_ext)r r# r$ Zrun_command�has_ext_modulesr r r r r"