Skip to content

Commit e73b8d3

Browse files
committed
Adjust for recent setuptools.
1 parent a129407 commit e73b8d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/build-manylinux-wheel.sh

+2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ else
6969
echo "Building the wheel for Python $py_ver."
7070
"$py_prefix/bin/python" -mpip install build
7171
# Force a rebuild of the extension.
72+
# setuptools<72.2 reads CFLAGS, >=72.2 reads CXXFLAGS.
7273
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MPLCAIRO="$mplcairo_version" \
7374
MPLCAIRO_NO_PYCAIRO=1 \
7475
CFLAGS="-static-libgcc -static-libstdc++ -I/usr/include/cairo -I/usr/include/freetype2" \
76+
CXXFLAGS="-static-libgcc -static-libstdc++ -I/usr/include/cairo -I/usr/include/freetype2" \
7577
LDFLAGS="-static-libgcc -static-libstdc++" \
7678
"$py_prefix/bin/python" -mbuild
7779
done

0 commit comments

Comments
 (0)