B …v5*ã @ 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 @ s„ e Zd ZdZdddddddgZd d dgZdd iZd d„ Zdd„ Zdd„ Z dd„ Z dd„ Zdd„ Zdd„ Z dd„ Zdd„ Zdd „ Zd!S )"Ú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])z 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])z skip-buildNzskip the build stepsr r z skip-buildz no-compilec C s( d | _ d | _d| _d | _d | _d | _d S )Nr )Úinstall_dirÚ build_dirr r ÚoptimizeÚ skip_build)Úself© r úB/opt/alt/python37/lib64/python3.7/distutils/command/install_lib.pyÚinitialize_options3 s zinstall_lib.initialize_optionsc C s† | ddddddd¡ | jd kr&d| _| jd kr6d | _t| jtƒs‚yt| jƒ| _| jd kr^t‚W n ttfk r€ tdƒ‚Y nX 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<