Edit File: build_py.pyc
� 3�abc�����������@���s��d��d�l��m��Z��d��d�l�m�Z�d��d�l�j�j�Z�d��d�l�Z�d��d�l�Z�d��d�l �Z �d��d�l �Z �d��d�l�Z�d��d�l �Z �d��d�l�m�Z�d��d�l�m�Z�m�Z�m�Z�y�d��d�l�m�Z�Wn$�e�k �r��d�d �d�������YZ�n�Xd �e�j�e�f�d �������YZ�d�d���Z�d����Z�d�S(���i����(���t���glob(���t���convert_pathN(���t���six(���t���mapt���filtert���filterfalse(���t ���Mixin2to3R���c�����������B���s���e��Z�e�d����Z�RS(���c���������C���s���d�S(���s ���do nothingN(����(���t���selft���filest���doctests(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyt���run_2to3���t����(���t���__name__t ���__module__t���TrueR ���(����(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR������s���t���build_pyc�����������B���s����e��Z�d��Z�d����Z�d����Z�d����Z�d����Z�d����Z�d����Z�d����Z �d����Z �d ����Z�d ����Z�d����Z �d����Z�d ����Z�d����Z�e�d������Z�RS(���sX��Enhanced 'build_py' command that includes data files with packages The data files are specified via a 'package_data' argument to 'setup()'. See 'setuptools.dist.Distribution' for more details. Also, this version of the 'build_py' command allows you to specify both 'py_modules' and 'packages' in the same setup operation. c���������C���sf���t��j�j�|����|��j�j�|��_�|��j�j�p.�i��|��_�d�|��j�k�rP�|��j�d�=n��g��|��_�g��|��_�d��S(���Nt ���data_files( ���t���origR���t���finalize_optionst���distributiont���package_datat���exclude_package_datat���__dict__t���_build_py__updated_filest���_build_py__doctests_2to3(���R���(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR���!���s���� c���������C���s����|��j��r�|��j�r�d�S|��j��r.�|��j����n��|��j�rN�|��j����|��j����n��|��j�|��j�t���|��j�|��j�t���|��j�|��j �t���|��j �t�j�j �|��d�d����d�S(���s?���Build modules, packages, and copy data files to build directoryNt���include_bytecodei����(���t ���py_modulest���packagest ���build_modulest���build_packagest���build_package_dataR ���R���t���FalseR���R���t���byte_compileR���R���t���get_outputs(���R���(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyt���run+���s���� c���������C���s5���|�d�k�r"�|��j�����|��_�|��j�St�j�j�|��|���S(���s���lazily compute data filesR���(���t���_get_data_filesR���R���R���t���__getattr__(���R���t���attr(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR$���?���s����c���������C���sq���t��j�r-�t�|�t��j���r-�|�j�d���}�n��t�j�j�|��|�|�|���\�}�}�|�rg�|��j�j �|���n��|�|�f�S(���Nt���.( ���R���t���PY2t ���isinstancet���string_typest���splitR���R���t���build_moduleR���t���append(���R���t���modulet���module_filet���packaget���outfilet���copied(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR+���F���s����c���������C���s)���|��j�����t�t�|��j�|��j�p"�d�����S(���s?���Generate list of '(package,src_dir,build_dir,filenames)' tuples(����(���t���analyze_manifestt���listR���t���_get_pkg_data_filesR���(���R���(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR#���P���s���� c���������C���sx���|��j��|���}�t�j�j�|��j�g�|�j�d������}�g��|��j�|�|���D]�}�t�j�j�|�|���^�qG�}�|�|�|�|�f�S(���NR&���(���t���get_package_dirt���ost���patht���joint ���build_libR*���t���find_data_filest���relpath(���R���R/���t���src_dirt ���build_dirt���filet ���filenames(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR4���U���s ����%1c���������C���s����|��j��|��j�|�|���}�t�t�|���}�t�j�j�|���}�t�t�j �j �|���}�t�j�|��j�j�|�g����|���}�|��j �|�|�|���S(���s6���Return filenames for package's data files in 'src_dir'(���t���_get_platform_patternsR���R���R����t ���itertoolst���chaint ���from_iterableR���R6���R7���t���isfilet���manifest_filest���gett���exclude_data_files(���R���R/���R<���t���patternst���globs_expandedt ���globs_matchest ���glob_filesR���(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR:���c���s���� c��� ������C���s����x��|��j��D]��\�}�}�}�}�x��|�D]��}�t�j�j�|�|���}�|��j�t�j�j�|�����t�j�j�|�|���}�|��j�|�|���\�}�} �t�j�j�|���}�| �r#�|�|��j�j �k�r#�|��j �j�|���q#�q#�Wq �Wd�S(���s$���Copy data files into build directoryN(���R���R6���R7���R8���t���mkpatht���dirnamet ���copy_filet���abspathR���t���convert_2to3_doctestsR���R,���( ���R���R/���R<���R=���R?���t���filenamet���targett���srcfilet���outfR1���(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR���t���s���� c���������C���s\��i��|��_��}�|��j�j�s�d��Si��}�x0�|��j�p2�d�D]�}�|�|�t�|��j�|�����<q3�W|��j�d���|��j�d���}�x��|�j�j �D]��}�t �j�j�t�|�����\�}�}�d��}�|�} �xU�|�r|�|�k�r|�|�k�r|�}�t �j�j�|���\�}�} �t �j�j�| �|���}�q��W|�|�k�r�|�j�d���r4|�| �k�r4q�n��|�j�|�|�g����j�|���q�q�Wd��S(���Nt���egg_infos���.py(����(���RE���R���t���include_package_dataR���t���assert_relativeR5���t���run_commandt���get_finalized_commandt���filelistR���R6���R7���R*���t���NoneR8���t���endswitht ���setdefaultR,���(���R���t���mft���src_dirsR/���t���ei_cmdR7���t���dt���ft���prevt���oldft���df(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR2�������s(���� !c���������C���s���d��S(���N(����(���R���(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyt���get_data_files����s����c���������C���s����y�|��j��|�SWn�t�k �r"�n�Xt�j�j�|��|�|���}�|�|��j��|�<|�s\�|��j�j�r`�|�Sx;�|��j�j�D])�}�|�|�k�s��|�j�|�d���rm�Pqm�qm�W|�St�j �|�d�����}�|�j ����}�Wd�QXd�|�k�r��t�j�j �d�|�f�����n��|�S(���s8���Check namespace packages' __init__ for declare_namespaceR&���t���rbNt���declare_namespaces����Namespace package problem: %s is a namespace package, but its __init__.py does not call declare_namespace()! Please fix it. (See the setuptools manual under "Namespace Packages" for details.) "(���t���packages_checkedt���KeyErrorR���R���t ���check_packageR���t���namespace_packagest ���startswitht���iot���opent���readt ���distutilst���errorst���DistutilsError(���R���R/���t���package_dirt���init_pyt���pkgRb���t���contents(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRk�������s&���� c���������C���s���i��|��_��t�j�j�|����d��S(���N(���Ri���R���R���t���initialize_options(���R���(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRx�������s���� c���������C���sD���t��j�j�|��|���}�|��j�j�d��k �r@�t�j�j�|��j�j�|���S|�S(���N( ���R���R���R5���R���t���src_rootR[���R6���R7���R8���(���R���R/���t���res(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR5�������s����c������������s~���t��������|��j�|��j�|�|���}���f�d����|�D��}�t�j�j�|���}�t�|���������f�d������D��}�t��t�|�����S(���s6���Filter filenames for package's data files in 'src_dir'c���������3���s!���|��]�}�t��j����|���Vq�d��S(���N(���t���fnmatchR���(���t���.0t���pattern(���R���(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pys ���<genexpr>����s���c���������3���s!���|��]�}�|����k�r�|�Vq�d��S(���N(����(���R|���t���fn(���t���bad(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pys ���<genexpr>����s���(���R3���R@���R���RA���RB���RC���t���sett���_unique_everseen(���R���R/���R<���R���RH���t���match_groupst���matchest���keepers(����(���R���R���s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRG�������s���� c������������s>���t��j�|��j�d�g����|��j�|�g������}����f�d����|�D��S(���s���� yield platform-specific path patterns (suitable for glob or fn_match) from a glob-based spec (such as self.package_data or self.exclude_package_data) matching package in src_dir. R���c���������3���s*���|��] �}�t��j�j����t�|�����Vq�d��S(���N(���R6���R7���R8���R���(���R|���R}���(���R<���(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pys ���<genexpr>����s���(���RA���RB���RF���(���t���specR/���R<���t���raw_patterns(����(���R<���s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR@�������s ����(���R���R ���t���__doc__R���R"���R$���R+���R#���R4���R:���R���R2���Rf���Rk���Rx���R5���RG���t���staticmethodR@���(����(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR������s ��� c���������c���s����t�����}�|�j�}�|�d�k�rM�xg�t�|�j�|����D]�}�|�|���|�Vq1�Wn;�x8�|��D]0�}�|�|���}�|�|�k�rT�|�|���|�VqT�qT�Wd�S(���sH���List unique elements, preserving order. Remember all elements ever seen.N(���R����t���addR[���R���t���__contains__(���t���iterablet���keyt���seent���seen_addt���elementt���k(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR��������s���� c���������C���sO���t��j�j�|����s�|��Sd�d�l�m�}�t�j�d���j����|��}�|�|�����d��S(���Ni����(���t���DistutilsSetupErrors���� Error: setup script specifies an absolute path: %s setup() arguments must *always* be /-separated paths relative to the setup.py directory, *never* absolute paths. (���R6���R7���t���isabst���distutils.errorsR����t���textwrapt���dedentt���lstrip(���R7���R����t���msg(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRW�����s����(����(���R����t���distutils.utilR���t���distutils.command.build_pyt���commandR���R���R6���R{���R����Rn���R����Rq���RA���t���setuptools.externR���t���setuptools.extern.six.movesR���R���R���t���setuptools.lib2to3_exR���t���ImportErrorR[���R����RW���(����(����(����s?���/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyt���<module>���s"��� �