Edit File: build_scripts.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�d�d�l�m �Z �d�d�l �m�Z�d�d�l�m �Z �e�j�d ���Z�d �e�f�d�������YZ�d�S(���sR���distutils.command.build_scripts Implements the Distutils 'build_scripts' command.s���$Id$i����N(���t���ST_MODE(���t���Command(���t���newer(���t���convert_path(���t���logs���^#!.*python[0-9.]*([ ].*)?$t ���build_scriptsc�����������B���sS���e��Z�d��Z�d�d�d�g�Z�d�g�Z�d ����Z�d����Z�d����Z�d ����Z�d����Z �RS(���s(���"build" scripts (copy and fixup #! line)s ���build-dir=t���ds���directory to "build" (copy) tot���forcet���fs1���forcibly build everything (ignore file timestampss���executable=t���es*���specify final destination interpreter pathc���������C���s1���d��|��_�d��|��_�d��|��_�d��|��_�d��|��_�d��S(���N(���t���Nonet ���build_dirt���scriptsR���t ���executablet���outfiles(���t���self(����(����s7���/usr/lib64/python2.7/distutils/command/build_scripts.pyt���initialize_options���s ���� c���������C���s)���|��j��d�d�d�d���|��j�j�|��_�d��S( ���Nt���buildR���R���R���R ���(���R���R���(���R���R���(���R ���R ���(���t���set_undefined_optionst���distributionR���(���R���(����(����s7���/usr/lib64/python2.7/distutils/command/build_scripts.pyt���finalize_options%���s ���� c���������C���s���|��j��S(���N(���R���(���R���(����(����s7���/usr/lib64/python2.7/distutils/command/build_scripts.pyt���get_source_files,���s����c���������C���s���|��j��s �d��S|��j����d��S(���N(���R���t���copy_scripts(���R���(����(����s7���/usr/lib64/python2.7/distutils/command/build_scripts.pyt���run/���s���� c������ ���C���s���t��d���}�|��j�|��j���g��}�x|��j�D]}�d�}�t�|���}�t�j�j�|��j�t�j�j�|�����}�|�j �|���|��j �r��t�|�|���r��t�j �d�|���q,�n��y�t�|�d���}�Wn&�t�k �r��|��j�s�����n��d�}�n]�X|�j����}�|�s |��j�d�|���q,�n��t�j�|���}�|�r=d�}�|�j�d���p7d�} �n��|�rt�j�d�|�|��j���|��j�st�|�d ���} �|�j����s�| �j�d �|��j�| �f���nK�| �j�d �t�j�j�|�j�d���d�|�j�d ���|�j�d���f���| �f���| �j�|�j������| �j����n��|�r>|�j����q>q,�|�r.|�j����n��|��j�|�|���q,�Wt�j �d�k�r�x��|�D]|�}�|��j�rzt�j�d�|���qXt�j!�|���t"�d�@}�|�d�Bd�@} �| �|�k�rXt�j�d�|�|�| ���t�j#�|�| ���qXqXWn��d�S(���s"��Copy each script listed in 'self.scripts'; if it's marked as a Python script in the Unix way (first line matches 'first_line_re', ie. starts with "\#!" and contains "python"), then adjust the first line to refer to the current Python interpreter as we copy. t ���sysconfigi����s���not copying %s (up-to-date)t���rs���%s is an empty file (skipping)i���t����s���copying and adjusting %s -> %st���ws���#!%s%s t���BINDIRs ���python%s%st���VERSIONt���EXEt���posixs���changing mode of %si���im��s!���changing mode of %s from %o to %oN($���t ���__import__t���mkpathR���R���R���t���ost���patht���joint���basenamet���appendR���R���R���t���debugt���opent���IOErrort���dry_runR ���t���readlinet���warnt ���first_line_ret���matcht���groupt���infot���is_python_buildt���writeR ���t���get_config_vart ���writelinest ���readlinest���closet ���copy_filet���namet���statR����t���chmod(���R���t ���_sysconfigR���t���scriptt���adjustt���outfileR���t ���first_lineR.���t���post_interpt���outft���filet���oldmodet���newmode(����(����s7���/usr/lib64/python2.7/distutils/command/build_scripts.pyR���5���sr����$ (���s ���build-dir=R���s���directory to "build" (copy) to(���R���R���s1���forcibly build everything (ignore file timestamps(���s���executable=R ���s*���specify final destination interpreter path( ���t���__name__t ���__module__t���descriptiont���user_optionst���boolean_optionsR���R���R���R���R���(����(����(����s7���/usr/lib64/python2.7/distutils/command/build_scripts.pyR������s��� (���t���__doc__t���__revision__R"���t���reR9���R����t���distutils.coreR���t���distutils.dep_utilR���t���distutils.utilR���t ���distutilsR���t���compileR-���R���(����(����(����s7���/usr/lib64/python2.7/distutils/command/build_scripts.pyt���<module>���s���