code: def sdist(options):
      """Make source distributions.
  
      Parameters
      ----------
      options :
          Set by ``task`` decorator.
  
      """
      # First clean the repo and update submodules (for up-to-date doc html theme
      # and Sphinx extensions)
      sh("git clean -xdf")
      sh("git submodule init")
      sh("git submodule update")
  
      # To be sure to bypass paver when building sdist... paver + numpy.distutils
      # do not play well together.
      # Cython is run over all Cython files in setup.py, so generated C files
      # will be included.
      sh("python3 setup.py sdist --formats=gztar,zip")
  
      # Copy the superpack into installers dir
      idirs = options.installers.installersdir
      if not os.path.exists(idirs):
          os.makedirs(idirs)
  
      for ftype in ["gztar", "zip"]:
          source = os.path.join("dist", tarball_name(ftype))
          target = os.path.join(idirs, tarball_name(ftype))
          shutil.copy(source, target)
  
file_path: numpy/pavement.py
imports: import os
  import sys
  import shutil
  import hashlib
  import textwrap
  import paver
  from paver.easy import Bunch, options, task, sh
label_desc: Use image node_id 2 for calling a global function with example usage: sdist(options) without return types