|
|
#1 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2021
Device: kindle
|
Building calibre for Windows
I modified some of the Calibre code and wanted to build it for Windows.
I read the build instructions on Github and realized that I couldn't meet his requirements. After I checked the forum posts, SOMEONE mentioned that you could compile Python files into PyC and replace the contents of Pylib.zip,But I found that this file is not in the latest version.But after I translated git history, I found that after 5.1, the build was changed to directly add pyC files in binary to python-lib.bypy.frozen. I wonder if there is a way to generate the python-lib.bypy.frozen file without recompiling all the dependencies (only the modified Python files). Or how to replace pyc files stored in python-lib.bypy.frozen with your own compiled pyC files. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,616
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You dont need to do any of that, just set a single environment variable. https://manual.calibre-ebook.com/develop.html
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2021
Device: kindle
|
Replay
Thank you for your reply.
I have read the document and set the environment variables on my computer. The modified code runs well on the computer. However, I want to build my own installer by modifying the python-lib.bypy.frozen method so that I can install and use it on other computers without having to re-download the source code setting variables. I was also aware of Calibre-Web services, but it didn't do a good job (we had a multi-layer nested Intranet) |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,616
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, there is no way to do that If you want to build calibre installers yourself, you have to do the entire build.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Building Calibre | komple | Calibre | 5 | 07-15-2021 11:04 AM |
| Windows Calibre - normal Windows vs 64bit Windows | midnightmaze | Calibre | 8 | 05-30-2015 08:16 AM |
| Building on Windows with MinGW | vepo | Sigil | 6 | 02-28-2013 09:21 PM |
| New: Building Windows 8 Blog (simple) | spedinfargo | Recipes | 0 | 10-09-2011 10:15 PM |
| Building Windows Binaries | itimpi | Calibre | 4 | 01-30-2009 02:22 PM |