3 \Í ã @ 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 ZdZd*d+d,d-d.d/d0gZdddgZddiZdd„ Zdd„ Zdd„ Z dd„ Z dd„ Zd d!„ Zd"d#„ Z d$d%„ Zd&d'„ Zd(d)„ ZdS )1Úinstall_libz7install all Python modules (extensions and pure Python)úinstall-dir=Údúdirectory to install toú build-dir=Úbú'build directory (where to install from)ÚforceÚfú-force installation (overwrite existing files)ÚcompileÚcúcompile .py to .pyc [default]ú no-compileNúdon't compile .py filesú optimize=ÚOúlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]ú skip-buildúskip the build stepsc 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.6/distutils/command/install_lib.pyÚinitialize_options3 s zinstall_lib.initialize_optionsc C s† | j dddddddƒ | jd kr&d | _| jd kr6d| _t| jtƒs‚yt| jƒ| _| jdkr^t‚W n ttfk r€ tdƒ‚Y nX d S )NÚinstallÚ build_libr r r r r r r TFr é é zoptimize must be 0, 1, or 2)r! r )r r )r r )r r )r r )r r )r r" r# )Zset_undefined_optionsr r Ú isinstanceÚintÚAssertionErrorÚ ValueErrorr )r r r r Úfinalize_options<