File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,16 +28,23 @@ jobs:
2828 - name : Install build dependencies
2929 run : |
3030 brew update
31- brew install python@${{ matrix.python }} gcc libxml2 libxmlsec1 pkg-config
31+ brew install python@${{ matrix.python }} gcc libxml2 libxslt libxmlsec1 pkg-config
3232 echo "/home/linuxbrew/.linuxbrew/opt/python@${{ matrix.python }}/libexec/bin" >> $GITHUB_PATH
3333
34+ - name : Configure Homebrew XML toolchain
35+ run : |
36+ echo "PKG_CONFIG_PATH=$(brew --prefix libxml2)/lib/pkgconfig:$(brew --prefix libxslt)/lib/pkgconfig" >> $GITHUB_ENV
37+ echo "CPPFLAGS=-I$(brew --prefix libxml2)/include -I$(brew --prefix libxslt)/include" >> $GITHUB_ENV
38+ echo "CFLAGS=-I$(brew --prefix libxml2)/include -I$(brew --prefix libxslt)/include" >> $GITHUB_ENV
39+ echo "LDFLAGS=-L$(brew --prefix libxml2)/lib -L$(brew --prefix libxslt)/lib" >> $GITHUB_ENV
40+ echo "$(brew --prefix libxml2)/bin" >> $GITHUB_PATH
41+ echo "$(brew --prefix libxslt)/bin" >> $GITHUB_PATH
42+
3443 - name : Build wheel
3544 run : |
3645 python3 -m venv build_venv
3746 source build_venv/bin/activate
3847 pip3 install --upgrade setuptools wheel build
39- export CFLAGS="-I$(brew --prefix)/include"
40- export LDFLAGS="-L$(brew --prefix)/lib"
4148 python3 -m build
4249 rm -rf build/
4350
You can’t perform that action at this time.
0 commit comments