Module ImportFrom alias Import alias Import alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str For NameStore NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num If CompareNotIn NameLoad NameLoad body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad orelse If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str NameLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot CompareIn Str NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn SubscriptLoad NameLoad Index Num ListLoad Str Str body Continue Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad For NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotEq NameLoad SubscriptLoad NameLoad Index NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotIn Str NameLoad Assign NameStore ListLoad For NameStore NameLoad body AugAssignAdd NameStore ListLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad Call AttributeLoad Str attr NameLoad attr Str Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp CompareIn Call AttributeLoad Str attr SubscriptLoad NameLoad Slice UnaryOpUSub NameLoad NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad If Call NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad Str attr ListComp BinOpMod Str Call AttributeLoad NameLoad attr Str Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad Call AttributeLoad Str attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Expr Str If CompareNotIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareIn NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr TryFinally body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad TryExcept body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore Dict Str Str Str Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Exec Call AttributeLoad NameLoad attr Dict NameLoad finalbody Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad TryExcept body Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ print_function N/A os N/A sys N/A distutils.core N/A N/A N/A setuptools N/A N/A N/A ImportError N/A N/A argparse ArgumentParser _get_locations N/A N/A pkgs package_dir N/A N/A N/A 
    based on setuptools logic and the package_dir dict, builds a dict
    of location roots for each pkg in pkgs.
    See http://docs.python.org/distutils/setupscript.html

    :returns: a dict {pkgname: root} for each pkgname in pkgs (and each of their parents)
     N/A locations N/A N/A allprefix N/A N/A package_dir get N/A pkg pkgs N/A N/A parent_location None N/A splits N/A N/A pkg split . N/A key_len N/A range N/A len splits N/A N/A key N/A N/A . join N/A splits N/A N/A key_len 1 N/A N/A key locations N/A N/A N/A key package_dir N/A N/A N/A locations N/A key N/A package_dir N/A key N/A N/A N/A parent_location None N/A N/A N/A locations N/A key N/A N/A N/A os path join parent_location N/A splits N/A key_len N/A N/A N/A locations N/A key N/A N/A N/A os path join allprefix key N/A parent_location N/A locations N/A key N/A locations N/A generate_cmake_file N/A N/A package_name version scripts package_dir pkgs modules N/A N/A N/A 
    Generates lines to add to a cmake file which will set variables

    :param version: str, format 'int.int.int'
    :param scripts: [list of str]: relative paths to scripts
    :param package_dir: {modulename: path}
    :pkgs: [list of str] python_packages declared in catkin package
    :modules: [list of str] python modules
     N/A prefix N/A %s_SETUP_PY package_name N/A result N/A N/A N/A N/A result append N/A set(%s_VERSION "%s") N/A prefix version N/A N/A N/A result append N/A set(%s_SCRIPTS "%s") N/A prefix N/A N/A ; join scripts N/A locations N/A _get_locations pkgs package_dir N/A N/A pkgname location N/A N/A locations items N/A N/A N/A N/A . pkgname N/A N/A N/A splits N/A N/A pkgname split . N/A N/A N/A splits N/A 1 N/A msg srv N/A N/A N/A root_name N/A splits N/A 0 N/A root_location location N/A _ N/A range N/A N/A len splits 1 N/A N/A root_location N/A N/A N/A os path dirname root_location N/A N/A root_location N/A locations N/A root_name N/A N/A N/A RuntimeError N/A catkin_export_python does not support setup.py files that combine across multiple directories: %s in %s, %s in %s N/A pkgname location root_name N/A locations N/A root_name N/A pkgs N/A p N/A p pkgs N/A . p N/A resolved_pkgs N/A N/A pkg pkgs N/A N/A resolved_pkgs N/A N/A locations N/A pkg N/A N/A N/A result append N/A set(%s_PACKAGES "%s") N/A prefix N/A N/A ; join pkgs N/A N/A N/A result append N/A set(%s_PACKAGE_DIRS "%s") N/A prefix N/A N/A N/A N/A ; join resolved_pkgs replace \ / N/A filtered_modules N/A N/A modname modules N/A N/A splits N/A N/A modname split . N/A equals_package N/A N/A N/A N/A . join N/A splits N/A N/A i locations N/A i N/A range N/A len splits N/A N/A any equals_package N/A N/A N/A N/A N/A filtered_modules append modname N/A module_locations N/A _get_locations filtered_modules package_dir N/A N/A N/A result append N/A set(%s_MODULES "%s") N/A prefix N/A N/A ; join N/A N/A %s.py N/A N/A m replace . / N/A m filtered_modules N/A N/A N/A result append N/A set(%s_MODULE_DIRS "%s") N/A prefix N/A N/A N/A N/A ; join N/A N/A module_locations N/A m N/A m filtered_modules replace \ / N/A result N/A _create_mock_setup_function N/A N/A package_name outfile N/A N/A N/A 
    Creates a function to call instead of distutils.core.setup or
    setuptools.setup, which just captures some args and writes them
    into a file that can be used from cmake

    :param package_name: name of the package
    :param outfile: filename that cmake will use afterwards
    :returns: a function to replace disutils.core.setup and setuptools.setup
     setup N/A N/A N/A args kwargs N/A N/A 
        Checks kwargs and writes a scriptfile
         N/A N/A version kwargs N/A N/A N/A N/A N/A sys stderr write N/A 
*** Unable to find 'version' in setup.py of %s
 package_name N/A N/A RuntimeError version not found in setup.py N/A version N/A kwargs N/A version N/A package_dir N/A N/A kwargs get package_dir N/A N/A pkgs N/A N/A kwargs get packages N/A N/A scripts N/A N/A kwargs get scripts N/A N/A modules N/A N/A kwargs get py_modules N/A N/A unsupported_args N/A entry_points exclude_package_data ext_modules  ext_package include_package_data namespace_packages setup_requires use_2to3 zip_safe N/A used_unsupported_args N/A arg N/A arg unsupported_args N/A arg kwargs N/A used_unsupported_args N/A N/A N/A N/A N/A sys stderr write N/A *** Arguments %s to setup() not supported in catkin devel space in setup.py of %s
 N/A used_unsupported_args package_name N/A result N/A generate_cmake_file package_name package_name version version scripts scripts package_dir package_dir pkgs pkgs modules modules N/A N/A open outfile w out N/A N/A N/A N/A out write N/A N/A join result N/A N/A setup N/A main N/A N/A N/A N/A N/A 
    Script main, parses arguments and invokes Dummy.setup indirectly.
     N/A parser N/A ArgumentParser description Utility to read setup.py values from cmake macros. Creates a file with CMake set commands setting variables. N/A N/A N/A parser add_argument package_name help Name of catkin package N/A N/A N/A parser add_argument setupfile_path help Full path to setup.py N/A N/A N/A parser add_argument outfile help Where to write result to N/A args N/A N/A parser parse_args N/A N/A N/A os chdir N/A N/A N/A os path dirname N/A N/A N/A os path abspath N/A args setupfile_path N/A N/A N/A fake_setup N/A _create_mock_setup_function package_name N/A args package_name outfile N/A args outfile N/A distutils_backup N/A N/A distutils core setup N/A N/A N/A distutils core setup fake_setup N/A N/A N/A setuptools_backup N/A setuptools setup N/A N/A setuptools setup fake_setup N/A N/A N/A NameError N/A N/A N/A N/A open N/A args setupfile_path r fh N/A N/A local_vars N/A __doc__ __file__ __name__ __package__ None N/A N/A N/A os path abspath N/A args setupfile_path __main__ None N/A N/A N/A fh read N/A local_vars N/A N/A N/A N/A distutils core setup distutils_backup N/A N/A N/A N/A setuptools setup setuptools_backup N/A N/A N/A NameError N/A N/A N/A N/A N/A __name__ __main__ N/A N/A N/A main