class_docstr: Set up package for development
class_docstr_tok: ["Set","up","package","for","development"]
docstr: Generate a path from egg_base back to '.' where the
  setup script resides and ensure that path points to the
  setup path from $install_dir/$egg_path.
docstr_tok: ["Generate","a","path","from","egg_base","back","to","'",".","'","where","the","setup","script","resides","and","ensure","that","path","points","to","the","setup","path","from","$","install_dir\/","$","egg_path","."]
code: def _resolve_setup_path(egg_base, install_dir, egg_path):
      """
      Generate a path from egg_base back to '.' where the
      setup script resides and ensure that path points to the
      setup path from $install_dir/$egg_path.
      """
      path_to_setup = egg_base.replace(os.sep, "/").rstrip("/")
      if path_to_setup != os.curdir:
          path_to_setup = "../" * (path_to_setup.count("/") + 1)
      resolved = pkg_resources.normalize_path(
          os.path.join(install_dir, egg_path, path_to_setup)
      )
      if resolved != pkg_resources.normalize_path(os.curdir):
          raise DistutilsOptionError(
              "Can't get a consistent path to setup script from"
              " installation directory",
              resolved,
              pkg_resources.normalize_path(os.curdir),
          )
      return path_to_setup
  
imports: from distutils.util import convert_path
  from distutils import log
  from distutils.errors import DistutilsError, DistutilsOptionError
  import os
  import glob
  import io
  from setuptools.extern import six
  import pkg_resources
  from setuptools.command.easy_install import easy_install
  from setuptools import namespaces
  import setuptools
label_desc: Use image node_id 4 for calling the develop obj's underlying member method code with example usage: obj._resolve_setup_path(egg_base, install_dir, egg_path) and returns: path_to_setup