Skip to content

Commit

Permalink
Adjust for recent setuptools.
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer committed Sep 19, 2024
1 parent a129407 commit e73b8d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/build-manylinux-wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ else
echo "Building the wheel for Python $py_ver."
"$py_prefix/bin/python" -mpip install build
# Force a rebuild of the extension.
# setuptools<72.2 reads CFLAGS, >=72.2 reads CXXFLAGS.
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MPLCAIRO="$mplcairo_version" \
MPLCAIRO_NO_PYCAIRO=1 \
CFLAGS="-static-libgcc -static-libstdc++ -I/usr/include/cairo -I/usr/include/freetype2" \
CXXFLAGS="-static-libgcc -static-libstdc++ -I/usr/include/cairo -I/usr/include/freetype2" \
LDFLAGS="-static-libgcc -static-libstdc++" \
"$py_prefix/bin/python" -mbuild
done
Expand Down

0 comments on commit e73b8d3

Please sign in to comment.