a i @ sH d dl Z d dlZd dlZd dlmZ d dlmZ dZG dd deZ dS ) 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 S )Nr )install_dir build_dirr r optimize skip_buildself r 5/usr/lib64/python3.9/distutils/command/install_lib.pyinitialize_options3 s zinstall_lib.initialize_optionsc C s | ddddddd | jd u r&d| _| jd u r6d | _t| jtszt| j| _| jd vr^tW n ttfy~ tdY n0 d S )Ninstall) 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 isinstanceintAssertionError ValueErrorr r r r r finalize_options<