From 99d2a25687c7a788a20dfc6210c48045c95e4b6d Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 20 Aug 2020 16:30:11 +0200 Subject: [PATCH] Make sure sys.argv exists (#5943) * Make sure sys.argv exists (resolves #5610) * Fix typo --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 01e372e91..f78781918 100755 --- a/setup.py +++ b/setup.py @@ -193,7 +193,7 @@ def setup_package(): root = os.path.abspath(os.path.dirname(__file__)) - if len(sys.argv) > 1 and sys.argv[1] == "clean": + if hasattr(sys, "argv") and len(sys.argv) > 1 and sys.argv[1] == "clean": return clean(root) with chdir(root):