![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2021
Device: none
|
Standalone Python 3?
A developer friend mentioned that Calibre packaged a standalone Python for internal use - something I'm trying to create for another piece of software. I don't see it though - Python/lib in the app is empty. Can anyone advise!
Thanks so much! - J |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes it has its own embedded python. And all the python modules are placed in a single file in bytecode form which is memory mapped and uses a custom import implementation for maximum import speed. See https://github.com/kovidgoyal/bypy for details.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2021
Device: none
|
Astounded!!
I am utterly astounded. Amazing work!!!! What an achievement! - J
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's the end result of over a decade of releasing python software. Sadly releasing python software was never a problem that was satisfactorily tackled upstream, so I've had to roll my own. bypy is designed for my personal use mainly (for calibre and kitty), but if you find it useful, enjoy.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is the environment Python 2 or Python 3? | halloleo | Library Management | 11 | 04-07-2020 03:47 AM |
Python 2 to Python 3, Polyglot & Plugins | DaltonST | Calibre | 18 | 04-24-2019 12:10 AM |
How can i run python (standalone version? ) on my kindle fire? | ah_ha | Kindle Fire | 6 | 04-03-2013 01:36 AM |
Standalone FlightCrew | capidamonte | Sigil | 8 | 04-25-2012 05:20 PM |
Standalone flightcrew? | bfollowell | Sigil | 4 | 06-30-2011 11:21 AM |