• moto's avatar
    Surpress stderr from subprocess in setup.py (#2133) · b73f5d67
    moto authored
    Summary:
    This commits supress the stderr output when shell commands are
    executed `setup.py`.
    
    `setup.py` performs multiple git commands to gather metadata.
    When `git tag` command tries to find a tag, (which fails unless on release)
    it produces `fatal: No names found, cannot describe anything.`
    
    This is confusing especially when it is executed from higher level,
    like `pip install git+https://...`.
    
    Pull Request resolved: https://github.com/pytorch/audio/pull/2133
    
    Reviewed By: nateanl
    
    Differential Revision: D33455339
    
    Pulled By: mthrok
    
    fbshipit-source-id: 3e24451eb6fedcd0ad90f7e16e38fcdb70dc9704
    b73f5d67
setup.py 5.48 KB