jenkins-bot has submitted this change and it was merged.
Change subject: (bug 55583) Do not create user-config if stdin is not a tty ......................................................................
(bug 55583) Do not create user-config if stdin is not a tty
Change-Id: I67d77458e13a6a2cc5a33095b0187d0e6cbe5d10 --- M setup.py 1 file changed, 6 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/setup.py b/setup.py index 855c91b..c0ea4a0 100644 --- a/setup.py +++ b/setup.py @@ -46,10 +46,12 @@ """ def run(self): install.install.do_egg_install(self) - import subprocess - python = sys.executable - python = python.replace("pythonw.exe", "python.exe") # for Windows - subprocess.call([python, "generate_user_files.py"]) + + if sys.stdin.isatty(): + import subprocess + python = sys.executable + python = python.replace("pythonw.exe", "python.exe") # for Windows + subprocess.call([python, "generate_user_files.py"])
setup( name='Pywikipediabot',
pywikibot-commits@lists.wikimedia.org