

def add_package(packages, pname, config=False, tests=False, scripts=False, others=None):
    '\n    Add a package to the list of packages, including certain subpackages.\n    '
    packages.append('.'.join(['IPython', pname]))
    if config:
        packages.append('.'.join(['IPython', pname, 'config']))
    if tests:
        packages.append('.'.join(['IPython', pname, 'tests']))
    if scripts:
        packages.append('.'.join(['IPython', pname, 'scripts']))
    if (others is not None):
        for o in others:
            packages.append('.'.join(['IPython', pname, o]))

dataset/ETHPy150Open ipython/ipython-py3k/setupbase.py add_package/original