original_docstring: Generates the buildout part
  
      This part is the entry point of a buildout configuration file, setting up
      general values for the environment. Here we setup paths and defaults for
      buildout's behaviour. Please refer to buildout documentation for more.
  
      This will output a buildout header that can be considered as a good start::
  
          [buildout]
          newest=false
          parts=
          package=
          extensions=gp.vcsdevelopc
          directory=.
          develop=${buildout:directory}
          eggs-directory=${buildout:directory}/var/eggs
          develop-eggs-directory=${buildout:directory}/var/develop-eggs
          develop-dir=${buildout:directory}/var/develop
          parts-directory=${buildout:directory}/var/parts
          requirements=
  
      Parameter ``root_path`` will change the path to the project's root, which is where
      the enviroment will be based on. If you're placing the ``buildout.cfg`` file in another
      directory than the root of the project, set it to the path that can get you from
      the buildout.cfg into the project, and it will all work ok.
  
      Parameter ``src_path`` will change the path to the sources, so if you've got your
      sources in ``./src``, you can set it up to src and it will generate::
  
          develop=./src
  
      Beware that all non-absolute paths given to ``src_path`` are relative to the
      ``root_path``.
  
      For parameter ``bin_path`` and ``env_path``, it will respectively change path to the
      generated ``bin`` directory and ``env`` directory, after running buildout.
  
      Args:
          root_path: path string to the root of the project (from which all other paths are relative to)
          src_path: path string to the sources (where ``setup.py`` is)
          env_path: path string to the environment (where dependencies are downloaded)
          bin_path: path string to the runnable scripts
  
      Returns:
          the buildout part as a dict
      
docstring: Generates the buildout part
  This part is the entry point of a buildout configuration file, setting up
  general values for the environment. Here we setup paths and defaults for
  buildout's behaviour. Please refer to buildout documentation for more.
  
  This will output a buildout header that can be considered as a good start:.
  
  [buildout]
  newest=false
  parts
  package
  extensions=gp.vcsdevelopc
  directory=.
  
  Parameter ``root_path`` will change the path to the project's root, which is where
  the enviroment will be based on. If you're placing the ``buildout.cfg`` file in another
  directory than the root of the project, set it to the path that can get you from
  the buildout.cfg into the project, and it will all work ok.
  
  
  
  develop=./src
  
  
  
  
docstring_tokens: Generates the buildout part This part is the entry point of a buildout configuration file setting up general values for the environment . Here we setup paths and defaults for buildout ' s behaviour . Please refer to buildout documentation for more . This will output a buildout header that can be considered as a good start : . [ buildout ] newest = false parts package extensions = gp . vcsdevelopc directory = . Parameter ` ` root_path ` ` will change the path to the project ' s root which is where the enviroment will be based on . If you ' re placing the ` ` buildout . cfg ` ` file in another directory than the root of the project set it to the path that can get you from the buildout . cfg into the project and it will all work ok . develop = . / src
code: def build_part_buildout(root_path=None, src_path=None, env_path=None, bin_path=None):
      '''Generates the buildout part
  
      This part is the entry point of a buildout configuration file, setting up
      general values for the environment. Here we setup paths and defaults for
      buildout's behaviour. Please refer to buildout documentation for more.
  
      This will output a buildout header that can be considered as a good start::
  
          [buildout]
          newest=false
          parts=
          package=
          extensions=gp.vcsdevelopc
          directory=.
          develop=${buildout:directory}
          eggs-directory=${buildout:directory}/var/eggs
          develop-eggs-directory=${buildout:directory}/var/develop-eggs
          develop-dir=${buildout:directory}/var/develop
          parts-directory=${buildout:directory}/var/parts
          requirements=
  
      Parameter ``root_path`` will change the path to the project's root, which is where
      the enviroment will be based on. If you're placing the ``buildout.cfg`` file in another
      directory than the root of the project, set it to the path that can get you from
      the buildout.cfg into the project, and it will all work ok.
  
      Parameter ``src_path`` will change the path to the sources, so if you've got your
      sources in ``./src``, you can set it up to src and it will generate::
  
          develop=./src
  
      Beware that all non-absolute paths given to ``src_path`` are relative to the
      ``root_path``.
  
      For parameter ``bin_path`` and ``env_path``, it will respectively change path to the
      generated ``bin`` directory and ``env`` directory, after running buildout.
  
      Args:
          root_path: path string to the root of the project (from which all other paths are relative to)
          src_path: path string to the sources (where ``setup.py`` is)
          env_path: path string to the environment (where dependencies are downloaded)
          bin_path: path string to the runnable scripts
  
      Returns:
          the buildout part as a dict
      '''
      buildout = OrderedDict()
      buildout['newest'] = 'false'
      buildout['parts'] = ''
      buildout['package'] = ''
      buildout['extensions'] = 'gp.vcsdevelop'
      if root_path:
          buildout['directory'] = root_path
      if not env_path:
          env_path = 'var'
      if not os.path.isabs(env_path):
              env_path = os.path.join('${buildout:directory}', env_path)
      if not bin_path:
          bin_path = 'bin'
      if not os.path.isabs(bin_path):
          bin_path = os.path.join('${buildout:directory}', bin_path)
      buildout['develop'] = src_path if src_path else '.'
      buildout['eggs-directory'] = os.path.join(env_path, 'eggs')
      buildout['develop-eggs-directory'] = os.path.join(env_path, 'develop-eggs')
      buildout['parts-directory'] = os.path.join(env_path, 'parts')
      buildout['develop-dir'] = os.path.join(env_path, 'develop')
      buildout['bin-directory'] = bin_path
      buildout['requirements'] = ListBuildout([])
      return {'buildout': buildout}
code_tokens: def build_part_buildout ( root_path = None , src_path = None , env_path = None , bin_path = None ) : buildout = OrderedDict ( ) buildout [ 'newest' ] = 'false' buildout [ 'parts' ] = '' buildout [ 'package' ] = '' buildout [ 'extensions' ] = 'gp.vcsdevelop' if root_path : buildout [ 'directory' ] = root_path if not env_path : env_path = 'var' if not os . path . isabs ( env_path ) : env_path = os . path . join ( '${buildout:directory}' , env_path ) if not bin_path : bin_path = 'bin' if not os . path . isabs ( bin_path ) : bin_path = os . path . join ( '${buildout:directory}' , bin_path ) buildout [ 'develop' ] = src_path if src_path else '.' buildout [ 'eggs-directory' ] = os . path . join ( env_path , 'eggs' ) buildout [ 'develop-eggs-directory' ] = os . path . join ( env_path , 'develop-eggs' ) buildout [ 'parts-directory' ] = os . path . join ( env_path , 'parts' ) buildout [ 'develop-dir' ] = os . path . join ( env_path , 'develop' ) buildout [ 'bin-directory' ] = bin_path buildout [ 'requirements' ] = ListBuildout ( [ ] ) return { 'buildout' : buildout }
short_docstring: Generates the buildout part
  This part is the entry point of a buildout configuration file, setting up
  general values for the environment.
short_docstring_tokens: Generates the buildout part This part is the entry point of a buildout configuration file setting up general values for the environment .
comment: '''Generates the buildout part
  
      This part is the entry point of a buildout configuration file, setting up
      general values for the environment. Here we setup paths and defaults for
      buildout's behaviour. Please refer to buildout documentation for more.
  
      This will output a buildout header that can be considered as a good start::
  
          [buildout]
          newest=false
          parts=
          package=
          extensions=gp.vcsdevelopc
          directory=.
          develop=${buildout:directory}
          eggs-directory=${buildout:directory}/var/eggs
          develop-eggs-directory=${buildout:directory}/var/develop-eggs
          develop-dir=${buildout:directory}/var/develop
          parts-directory=${buildout:directory}/var/parts
          requirements=
  
      Parameter ``root_path`` will change the path to the project's root, which is where
      the enviroment will be based on. If you're placing the ``buildout.cfg`` file in another
      directory than the root of the project, set it to the path that can get you from
      the buildout.cfg into the project, and it will all work ok.
  
      Parameter ``src_path`` will change the path to the sources, so if you've got your
      sources in ``./src``, you can set it up to src and it will generate::
  
          develop=./src
  
      Beware that all non-absolute paths given to ``src_path`` are relative to the
      ``root_path``.
  
      For parameter ``bin_path`` and ``env_path``, it will respectively change path to the
      generated ``bin`` directory and ``env`` directory, after running buildout.
  
      Args:
          root_path: path string to the root of the project (from which all other paths are relative to)
          src_path: path string to the sources (where ``setup.py`` is)
          env_path: path string to the environment (where dependencies are downloaded)
          bin_path: path string to the runnable scripts
  
      Returns:
          the buildout part as a dict
      '''