Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2021, 11:10 AM   #1
shizhihai
Junior Member
shizhihai began at the beginning.
 
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.
shizhihai is offline   Reply With Quote
Old 12-10-2021, 12:16 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,864
Karma: 22666666
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
kovidgoyal is offline   Reply With Quote
Advert
Old 12-10-2021, 11:02 PM   #3
shizhihai
Junior Member
shizhihai began at the beginning.
 
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)
shizhihai is offline   Reply With Quote
Old 12-11-2021, 01:12 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,864
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building Calibre komple Calibre 5 07-15-2021 10:04 AM
Windows Calibre - normal Windows vs 64bit Windows midnightmaze Calibre 8 05-30-2015 07:16 AM
Building on Windows with MinGW vepo Sigil 6 02-28-2013 08:21 PM
New: Building Windows 8 Blog (simple) spedinfargo Recipes 0 10-09-2011 09:15 PM
Building Windows Binaries itimpi Calibre 4 01-30-2009 01:22 PM


All times are GMT -4. The time now is 04:39 AM.


MobileRead.com is a privately owned, operated and funded community.