Browse Source

ref(bdist): Silence the bdist output (#16950)

Removes the excessive file listing for each file that is copied and added to the wheel.
Burak Yigit Kaya 5 years ago
parent
commit
33a07494f2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      setup.py

+ 6 - 0
setup.py

@@ -19,12 +19,14 @@ ROOT = os.path.dirname(os.path.abspath(__file__))
 # add sentry to path so we can import sentry.utils.distutils
 sys.path.insert(0, os.path.join(ROOT, "src"))
 
+
 from sentry.utils.distutils import (
     BuildAssetsCommand,
     BuildIntegrationDocsCommand,
     BuildJsSdkRegistryCommand,
 )
 
+
 VERSION = "10.1.0.dev0"
 IS_LIGHT_BUILD = os.environ.get("SENTRY_LIGHT_BUILD") == "1"
 
@@ -59,6 +61,10 @@ class SentrySDistCommand(SDistCommand):
 
 class SentryBuildCommand(BuildCommand):
     def run(self):
+        from distutils import log as distutils_log
+
+        distutils_log.set_threshold(distutils_log.WARN)
+
         if not IS_LIGHT_BUILD:
             self.run_command("build_integration_docs")
             self.run_command("build_assets")