Skip to content

Commit

Permalink
elegant terminal output for local version
Browse files Browse the repository at this point in the history
  • Loading branch information
y8z committed Oct 3, 2024
1 parent 9901ad8 commit 2cc3c5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
from setuptools import setup, find_packages
import versioneer # https://github.com/warner/python-versioneer

# Redirect stdout and stderr to null
os.close(1)
os.close(2)
os.open(os.devnull, os.O_RDWR)
os.dup(1)
os.dup(2)

# Constants
THIS_DIR = os.path.dirname(__file__)

Expand Down

0 comments on commit 2cc3c5b

Please sign in to comment.