def spawn(self, cmd, search_path=1, level=1):
        """Spawn an external command respecting dry-run flag."""
        from distutils.spawn import spawn

        spawn(cmd, search_path, dry_run=self.dry_run)
Spawn an external command respecting dry-run flag.
product/gradle-plugin/src/main/python/setuptools/_distutils/cmd.py