a
´iÍ ã @ 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 S )Nr )Úinstall_dirÚ build_dirr r ÚoptimizeÚ
skip_build©Úself© r ú5/usr/lib64/python3.9/distutils/command/install_lib.pyÚinitialize_options3 s zinstall_lib.initialize_optionsc C s„ | ddddddd¡ | jd u r&d| _| jd u r6d | _t| jtƒs€zt| jƒ| _| jd
vr^t‚W n ttfy~ tdƒ‚Y n0 d S )NÚinstall)Ú build_libr )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<