code: def build_distributions(context):
      
      rmtree('dist', ignore_errors=True)
  
      build_package_command = 'python setup.py clean sdist bdist_wheel'
      result = shell.dry_run(build_package_command, context.dry_run)
      packages = Path('dist').files() if not context.dry_run else "nothing"
  
      if not result:
          raise Exception('Error building packages: %s' % result)
      else:
          log.info('Built %s' % ', '.join(packages))
      return packages
docs: Builds package distributions