mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
winbuild include python3
This commit is contained in:
parent
81d6965c81
commit
1d0ab7a274
@ -49,15 +49,15 @@ Updating dependencies
|
||||
to %%dependencies%%\ghostscript.
|
||||
|
||||
- Python
|
||||
download the latest Python 2 release for windows from https://www.python.org/downloads/windows/ (32 or 64 bit),
|
||||
current version is 2.7.17
|
||||
Install it or extract with a tool named lessmsi. If you install it, you will have to find python27.dll in the
|
||||
Windows\System32 folder. 64-bit dlls on a 64-bit windows are stored in Windows\System32 folder, 32-bit dlls on a 64-bit windows
|
||||
are stored in Windows\SysWOW64. Copy this python27.dll to %%dependencies%%\Python, from the python installation folder copy
|
||||
all files and "DLLs", "Lib" and "libs" subfolders to %%dependencies%%\Python. You can uninstall python afterwards.
|
||||
If you extracted with lessmsi, you will also get visual studio runtime dlls and some executables, which are used during installation,
|
||||
these are not needed. Copy the 2 python executables, the python dll, the 3 textfiles (license, news and readme) and the "DLLs",
|
||||
"Lib" and "libs" subfolders to %%dependencies%%\Python.
|
||||
download the latest Python 3 release for windows from https://www.python.org/downloads/windows/ (embeddable package 64 bit),
|
||||
current version is 3.11.2
|
||||
Extract it and copy to %%dependencies%%\Python.
|
||||
open python3XX._pth file with a text editor, uncomment the "import site" line
|
||||
add following paths after the 2 already existing paths ('.' and python311.zip)
|
||||
./Scripts
|
||||
../Resources
|
||||
../Resources/lyx2lyx
|
||||
../Resources/scripts
|
||||
|
||||
- Visual Studio runtime
|
||||
Download the latest Visual C++ Redistributable (if you still haven't), the version should match with your VS C++ compiler
|
||||
|
@ -719,7 +719,7 @@ Section -CompilePython
|
||||
SectionEnd
|
||||
|
||||
Section -LyxrcDist
|
||||
StrCpy $pathPrefix "$LatexPath;$$LyXDir\bin;$$LyXDir\Python;$$LyXDir\Python\Lib;$$LyXDir\imagemagick;$$LyXDir\ghostscript\bin"
|
||||
StrCpy $pathPrefix "$LatexPath;$$LyXDir\bin;$$LyXDir\Python;$$LyXDir\Python\Lib;$$LyXDir\Python\Scripts;$$LyXDir\imagemagick;$$LyXDir\ghostscript\bin"
|
||||
|
||||
# Find additional software and add their install locations to the path_prefix
|
||||
# This list contains all software, which write the string value "InstallLocation" in their corresponding keys in "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
|
||||
|
Loading…
Reference in New Issue
Block a user