def pkg_info(pkg_path):
src, hsh = pkg_commit_hash(pkg_path)<EOL>return dict(<EOL>ipython_version=release.version,<EOL>ipython_path=pkg_path,<EOL>commit_source=src,<EOL>commit_hash=hsh,<EOL>sys_version=sys.version,<EOL>sys_executable=sys.executable,<EOL>sys_platform=sys.platform,<EOL>platform=platform.platform(),<EOL>os_name=os.name,<EOL>default_encoding=encoding.DEFAULT_ENCODING,<EOL>)<EOL>
Return dict describing the context of this package

    Parameters
    ----------
    pkg_path : str
       path containing __init__.py for package

    Returns
    -------
    context : dict
       with named parameters of interest