From 5824723da31ca5e7a44e549e878b46e40d65823c Mon Sep 17 00:00:00 2001 From: Andy Shields Date: Mon, 25 Apr 2022 14:31:47 -0700 Subject: [PATCH] Update setup.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactored to resolve syntax error, with missing parenthesis during egg installation. × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [7 lines of output] Traceback (most recent call last): File "", line 36, in File "", line 34, in File "/tmp/pip-install-p3t045mx/pysqlcipher_0057c16bd8cf407782aa9e6618077d88/setup.py", line 64 print "CFLAGS", os.environ['CFLAGS'] ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("CFLAGS", os.environ['CFLAGS'])? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed Reproduced here print "CFLAGS", os_env ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("CFLAGS", os_env)? Resolution print("CFLAGS", os_env) CFLAGS -Qunused-arguments --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6e6938a..34bfe3e 100644 --- a/setup.py +++ b/setup.py @@ -61,7 +61,7 @@ if sys.platform == "darwin": # Work around clang raising hard error for unused arguments os.environ['CFLAGS'] = "-Qunused-arguments" - print "CFLAGS", os.environ['CFLAGS'] + print("CFLAGS", os.environ['CFLAGS']) include_dirs = [] library_dirs = []