summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-07-30 02:58:56 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-07-30 03:05:57 +0300
commita03dd9335a840c431993743d015cdc852dd3754f (patch)
tree3941cb8db12e725fe0d60347c05db07b6b6c22b7
parent5e40676b8b687a896b5365f8f77ea7efc51ba165 (diff)
downloadpytdeextensions-a03dd9335a840c431993743d015cdc852dd3754f.tar.gz
pytdeextensions-a03dd9335a840c431993743d015cdc852dd3754f.zip
split() CXX value from python config var or env
This fixes FTBFS caused by last commit (5e40676) Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rwxr-xr-xsetup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index a2caa42..7211137 100755
--- a/setup.py
+++ b/setup.py
@@ -161,7 +161,7 @@ class BuildLibpythonize(Command):
cmdlist.append("--tag=CXX")
# Find the compiler and flags
- cxx = sysconfig.get_config_var("CXX") or os.environ.get("CXX") or "c++"
+ cxx = sysconfig.get_config_var("CXX").split() or os.environ.get("CXX").split() or ["c++"]
cxxflags = []
# Use python's CFLAGS
cflags = (sysconfig.get_config_var("CFLAGS"))
@@ -173,7 +173,7 @@ class BuildLibpythonize(Command):
if os.environ.get("CXXFLAGS"):
cxxflags.extend(os.environ["CXXFLAGS"].split())
- cmdlist.append(cxx)
+ cmdlist.extend(cxx)
# cc_flags
cmdlist.append("-c")