File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 44rm -rf addon/globalPlugins/MathCAT/Rules
55# NVDA is currently uses 32 bit python 3.7
66# We need to tell PYO3 that
7- set PYO3_PYTHON_64=c:/Users/neils/AppData/Local/Programs/Python/Python39/python.exe
8- set PYO3_PYTHON_32=c:/Users/neils/AppData/Local/Programs/Python/Python37-32/python.exe
9- env PYO3_PYTHON=$PYO3_PYTHON_32 cargo build --target i686-pc-windows-msvc --release
10- cp target/i686-pc-windows-msvc/release/libmathcat_py.dll NVDA-addon/addon/globalPlugins/MathCAT/libmathcat.pyd
11- cd NVDA-addon
7+ set PYO3_PYTHON_64=c:/Users/neils/AppData/Local/Programs/Python/Python39
8+ set PYO3_PYTHON_32=c:/Users/neils/AppData/Local/Programs/Python/Python37-32
9+ env PYO3_PYTHON=$PYO3_PYTHON_32 /python.exe cargo build --target i686-pc-windows-msvc --release
10+ cp target/i686-pc-windows-msvc/release/libmathcat_py.dll addon/globalPlugins/MathCAT/libmathcat.pyd
1211sed ' s/^import wx\.xrc/# import wx.xrc/' --in-place " addon/globalPlugins/MathCAT/MathCATgui.py"
1312rm MathCAT-* .nvda-addon
14- scons
13+ $PYO3_PYTHON_32 /Scripts/ scons
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use zip::ZipArchive;
99fn main ( ) {
1010 let archive = libmathcat:: ZIPPED_RULE_FILES ;
1111 let archive = std:: io:: Cursor :: new ( archive) ;
12- let location = PathBuf :: from ( "NVDA-addon/ addon/globalPlugins/MathCAT" ) ;
12+ let location = PathBuf :: from ( "addon/globalPlugins/MathCAT" ) ;
1313
1414 let mut zip_archive = ZipArchive :: new ( archive) . unwrap ( ) ;
1515 zip_archive. extract ( & location) . expect ( "Zip extraction failed" ) ;
You can’t perform that action at this time.
0 commit comments