Edit File: install_lib.pyc
� ��7ec�����������@���s����d��Z��d�Z�d�d�l�Z�d�d�l�Z�d�d�l�m�Z�d�d�l�m�Z�e�e�d���rc�e�j �d�Z �n�d�Z �d �e�f�d �������YZ�d�S(���sk���distutils.command.install_lib Implements the Distutils 'install_lib' command (install all Python modules).s���$Id$i����N(���t���Command(���t���DistutilsOptionErrort���extsept���pys���.pyt���install_libc�������� ���B���s����e��Z�d��Z�d�d�d �d!�d#�d$�d%�g�Z�d�d �d�g�Z�i�d �d �6Z�d����Z�d����Z�d����Z �d����Z �d����Z�d����Z�d����Z �d����Z�d����Z�d����Z�RS(&���s7���install all Python modules (extensions and pure Python)s���install-dir=t���ds���directory to install tos ���build-dir=t���bs'���build directory (where to install from)t���forcet���fs-���force installation (overwrite existing files)t���compilet���cs���compile .py to .pyc [default]s ���no-compiles���don't compile .py filess ���optimize=t���Osl���also compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]s ���skip-builds���skip the build stepsc���������C���s:���d��|��_�d��|��_�d�|��_�d��|��_�d��|��_�d��|��_�d��S(���Ni����(���t���Nonet���install_dirt ���build_dirR���R ���t���optimizet ���skip_build(���t���self(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyt���initialize_options7���s���� c������ ���C���s����|��j��d�d�d�d�d�d�d���|��j�d��k�r:�d �|��_�n��|��j�d��k�rU�d�|��_�n��t�|��j�t���s��y.�t�|��j���|��_�|��j�d�k�r��t���n��Wq��t�t�f�k �r��t�d ���q��Xn��d��S(���Nt���installt ���build_libR���R���R ���R���R ���R���R���i���i����i���s���optimize must be 0, 1, or 2(���R���R���(���R���R ���(���R���R���(���R ���R ���(���R���R���(���R���R���(���i����i���i���( ���t���set_undefined_optionsR ���R���R���t ���isinstancet���intt���AssertionErrort ���ValueErrorR���(���R���(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyt���finalize_options@���s$���� c���������C���sE���|��j�����|��j����}�|�d��k �rA�|��j�j����rA�|��j�|���n��d��S(���N(���t���buildR���R���t���distributiont���has_pure_modulest���byte_compile(���R���t���outfiles(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyt���runZ���s���� c���������C���sN���|��j��sJ�|��j�j����r(�|��j�d���n��|��j�j����rJ�|��j�d���qJ�n��d��S(���Nt���build_pyt ���build_ext(���R���R���R���t���run_commandt���has_ext_modules(���R���(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyR���j���s ���� c���������C���sL���t��j�j�|��j���r0�|��j�|��j�|��j���}�n�|��j�d�|��j���d��S|�S(���Ns3���'%s' does not exist -- no Python modules to install(���t���ost���patht���isdirR���t ���copy_treeR ���t���warn(���R���R���(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyR���q���s���� c���������C���s����t��j�r�|��j�d���d��Sd�d�l�m�}�|��j�d���j�}�|��j�rp�|�|�d�d�d�|��j�d�|�d �|��j ��n��|��j �d�k�r��|�|�d�|��j �d�|��j�d�|�d �|��j�d �|��j ��n��d��S(���Ns%���byte-compiling is disabled, skipping.i����(���R���R���R���i����R���t���prefixt���dry_runt���verbose(���t���syst���dont_write_bytecodeR)���t���distutils.utilR���t���get_finalized_commandt���rootR ���R���R+���R���R,���(���R���t���filesR���t���install_root(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyR���z���s���� c��� ������C���s����|�s �g��S|��j��|���}�|�j����}�t�|�|���}�t�|���t�t�j���}�g��}�x.�|�D]&�} �|�j�t�j�j�|�| �|�����qZ�W|�S(���N( ���R0���t���get_outputst���getattrt���lenR%���t���sept���appendR&���t���join( ���R���t���has_anyt ���build_cmdt ���cmd_optiont ���output_dirt���build_filesR���t ���prefix_lent���outputst���file(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyt���_mutate_outputs����s���� $c���������C���s����g��}�x��|�D]z�}�t��j�j�t��j�j�|�����d�}�|�t�k�rG�q �n��|��j�rd�|�j�|�d���n��|��j�d�k�r �|�j�|�d���q �q �W|�S(���Ni���R ���i����t���o(���R%���R&���t���splitextt���normcaset���PYTHON_SOURCE_EXTENSIONR ���R8���R���(���R���t���py_filenamest���bytecode_filest���py_filet���ext(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyt���_bytecode_filenames����s���� " c���������C���su���|��j��|��j�j����d�d�|��j���}�|��j�r?�|��j�|���}�n�g��}�|��j��|��j�j����d�d�|��j���}�|�|�|�S(���s����Return the list of files that would be installed if this command were actually run. Not affected by the "dry-run" flag or whether modules have actually been built yet. R!���R���R"���(���RB���R���R���R ���R ���RK���R$���(���R���t���pure_outputst���bytecode_outputst���ext_outputs(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyR4�������s���� c���������C���sr���g��}�|��j��j����r:�|��j�d���}�|�j�|�j������n��|��j��j����rn�|��j�d���}�|�j�|�j������n��|�S(���s����Get the list of files that are input to this command, ie. the files that get installed as they are named in the build tree. The files in this list correspond one-to-one to the output filenames returned by 'get_outputs()'. R!���R"���(���R���R���R0���t���extendR4���R$���(���R���t���inputsR!���R"���(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyt ���get_inputs����s����(���s���install-dir=R���s���directory to install to(���s ���build-dir=R���s'���build directory (where to install from)(���R���R���s-���force installation (overwrite existing files)(���R ���R ���s���compile .py to .pyc [default]N(���s ���no-compileNs���don't compile .py files(���s ���optimize=R���sl���also compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0](���s ���skip-buildNs���skip the build steps(���t���__name__t ���__module__t���descriptionR���t���user_optionst���boolean_optionst���negative_optR���R���R ���R���R���R���RB���RK���R4���RQ���(����(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyR������s*���� (���t���__doc__t���__revision__R%���R-���t���distutils.coreR����t���distutils.errorsR���t���hasattrR���RF���R���(����(����(����s5���/usr/lib64/python2.7/distutils/command/install_lib.pyt���<module>���s���