setup.py triggers an interactive prompt

Issue #250 closed
René Fleschenberg
created an issue

Line 159 of setup.py calls config.main(). Line 222 of config_unix.py triggers an interactive prompt unless -auto is in sys.argv.

There is no way to pass -auto via setup.py, since setuptools does not support that.

This is extremely annoying for anyone who has to install pygame non-interactively, e.g. for automated deployments or when using CI systems such as tox. Please remove the interactive prompt.

Comments (4)

  1. Daniel Foerster

    The obvious workaround is to run ./config.py -auto or ./configure before running setup.py, but pip does not do that. If setup.py were to simply sys.argv.remove('-auto') after importing and running config, this problem would be solved.

  2. René Dudfield

    Setup/configure shouldn't prompt for input when non-interactive

    We should check isatty() before calling input().

    There are still some cases in config_win.py that prompt - I wasn't sure what to do there. But I think most people running into this are probably on Unix, for which this should resolve it.

    Closes #224 Closes #250

    → <<cset a46c0aeb905f>>

  3. Log in to comment