Skip to content

Commit 6d0d403

Browse files
committed
make explicit the PY03_PYTHON exe to use rather than having it hidden in some environment var
1 parent dcffd85 commit 6d0d403

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-nvda-addon.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
# RUN THIS FILE to build the NVDA addon
33

44
rm -rf NVDA-addon/addon/globalPlugins/MathCAT/Rules
5-
cargo build --target i686-pc-windows-msvc --release
6-
5+
# NVDA is currently uses 32 bit python 3.7
6+
# We need to tell PYO3 that
7+
set PYO3_PYTHON_32=c:/Users/neils/AppData/Local/Programs/Python/Python37-32/python.exe
8+
env PYO3_PYTHON=$PYO3_PYTHON_32 cargo build --target i686-pc-windows-msvc --release
79
cp target/i686-pc-windows-msvc/release/libmathcat_py.dll NVDA-addon/addon/globalPlugins/MathCAT/libmathcat.pyd
810
cd NVDA-addon
911
sed 's/^import wx\.xrc/# import wx.xrc/' --in-place "addon/globalPlugins/MathCAT/MathCATgui.py"

0 commit comments

Comments
 (0)