From 0eb19df5dd51a2350fb6134b7579a75d7d37ba4f Mon Sep 17 00:00:00 2001 From: Benjamin Lorenz Date: Mon, 4 Dec 2023 10:55:36 +0100 Subject: [PATCH] split by whitespace --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 60d5c1f..6a30ad7 100644 --- a/setup.py +++ b/setup.py @@ -21,9 +21,9 @@ def conditional_decode( string ): return string return string.decode( 'utf-8' ) -polymake_cflags = conditional_decode( subprocess.check_output( [ "polymake-config", "--cflags" ] ).strip() ).split(' ') -polymake_cflags += conditional_decode( subprocess.check_output( [ "polymake-config", "--includes" ] ).strip() ).split(' ') -polymake_ldflags = conditional_decode( subprocess.check_output( [ "polymake-config", "--ldflags" ] ).strip() ).split(' ') +polymake_cflags = conditional_decode( subprocess.check_output( [ "polymake-config", "--cflags" ] ).strip() ).split() +polymake_cflags += conditional_decode( subprocess.check_output( [ "polymake-config", "--includes" ] ).strip() ).split() +polymake_ldflags = conditional_decode( subprocess.check_output( [ "polymake-config", "--ldflags" ] ).strip() ).split() polymake_ldflags += [ "-lpolymake" ] polymake_cc = conditional_decode( subprocess.check_output( [ "polymake-config", "--cc" ] ).strip() )