73 Commits

Author SHA1 Message Date
Kovid Goyal
d7c31f4a81
Automated fixes from ruff 2023-01-09 18:13:56 +05:30
xxyzz
5c12e51ef1
Add USER_SITE to site.py to fix error in pip 2022-11-04 15:13:18 +08:00
Kovid Goyal
28070b6661
FB2 Input: Fix a regression in 6.0 that broke conversion of FB2 on macOS. Fixes #1982743 [failed to convert fb2](https://bugs.launchpad.net/calibre/+bug/1982743) 2022-07-27 12:12:51 +05:30
Kovid Goyal
19f007fa9d
Linux binaries: Bundle brotli and graphite2 as well as Qt links against them 2022-07-18 19:30:24 +05:30
Kovid Goyal
5c3385476f
Switch from cchardet to uchardet
cchardet is not maintained anymore: https://github.com/PyYoshi/cChardet/issues/77

cchardet is based on uchardet with the addition of reporting encoding
detection confidence. We dont really need that, so moving to uchardet is
simplest.

See #1690 (Low effort port to charset_normalizer)
2022-07-16 15:36:28 +05:30
Kovid Goyal
424f0b8cc6
Indicate Catalina is required in Info.plist 2022-07-11 12:56:51 +05:30
Kovid Goyal
cde3ff211c
Use pdftotext to index PDF files
Much faster and less resource intensive than pdftohtml
2022-07-06 19:19:55 +05:30
Kovid Goyal
0bad6416a8
placeholder should also be a universal binary 2022-07-06 19:19:38 +05:30
Kovid Goyal
7bfa37c9bb
Fix for Apple's cheap ass freeloading on libxml2
Trillion dollar company that cant write its own XML parser. And
libxml2 is currently going begging for a lack of maintainers. Silicon
valley really makes my blood boil. Fucking armpit of the universe.
2022-07-06 19:19:38 +05:30
Kovid Goyal
8bc909debe
Bump library versions 2022-07-06 19:19:37 +05:30
Kovid Goyal
e195b3a1e2
Build universal binaries on macOS 2022-07-06 19:19:37 +05:30
Kovid Goyal
433e07fda7
Fix pyexpat not being linked against bundled libexpat 2022-02-16 15:37:56 +05:30
Kovid Goyal
055f5b0979
Add the Py_SSIZE_T_CLEAN definition needed for python 3.10
Ideally someone needs to go through all the code and check that nothing
breaks because of this macro, but, I dont have that kind of time
2021-12-01 10:47:51 +05:30
Zbigniew Jędrzejewski-Szmek
9d63b6ae56 Drop (object) from class definitions
Python2 had old-style classes (no "(object)"), and new style classes (with
"object"). Under Py3 this is a noop, so let's drop it to make the code
a bit shorter.
2021-09-30 09:23:56 +02:00
Kovid Goyal
fe81410c74
Fix linking of libstemmer.dylib 2021-06-25 08:45:07 +05:30
Kovid Goyal
8457379487
Add libstemmer as a dependency
Will be used for tokenizing in the new ICU based FTS tokenizer
2021-06-20 12:38:04 +05:30
Kovid Goyal
d8d1d890ea
Dont internet enable dmg images as this functionality is deprecated by Apple and not used since 10.7. The internet-enable verb was also removed from hdiutil in Catalina (10.15) 2021-05-01 14:54:34 +05:30
Kovid Goyal
2959f98698
Fix pyrcytodome not useable on macOS and Linux 2020-11-25 20:57:14 +05:30
Kovid Goyal
3dd7bc160e
Move loading of env vars to bypy. Allows defining CALIBRE_DEVELOP_FROM in env vars file 2020-11-21 12:20:54 +05:30
Kovid Goyal
9dad654fc2
Register the calibre URL on macOS as well 2020-11-11 12:34:31 +05:30
Kovid Goyal
abcdb53b0e
Fix calibre 5.4 not running via Launch Services on macOS 2020-10-30 12:57:27 +05:30
Kovid Goyal
20150e3368
Remove more uses of the plugins dict 2020-10-18 11:57:23 +05:30
Kovid Goyal
defa85e918
Use simplified interface for freezing 2020-10-03 12:03:21 +05:30
Kovid Goyal
4e5fda27a8
Switch macOS build to use new bypy freezer 2020-10-03 09:05:36 +05:30
Kovid Goyal
eb824ef094
Remove CALIBRE_DEVELOP_FROM from site.py
It will be implemented in the bypy frozen loader instead
2020-10-03 09:05:36 +05:30
Kovid Goyal
7a4b3f61ff
Move to SIP v5 2020-09-16 21:52:25 +05:30
Kovid Goyal
c31ead51dc
Minor fixes for new build deps 2020-09-02 10:49:45 +05:30
Kovid Goyal
1f1d8024cb
Fix lib names for OpenSSL 1.1 2020-08-22 18:48:38 +05:30
Kovid Goyal
140ef318ce
Fix accidental re-execing for calibre_parallel as well on macOS 2020-08-22 18:48:33 +05:30
Kovid Goyal
d2f24d6449
Update ICU version in macOS freezer 2020-08-22 18:48:08 +05:30
Kovid Goyal
8cbda9e18a
Build fixes 2020-08-22 18:48:07 +05:30
Kovid Goyal
2a2f641856
Port the commit to master to fix PDF Output with ebook-convert via symlink on macOS 2020-08-22 18:48:05 +05:30
Kovid Goyal
55214540fd
Dont remove v3 port from PyQt 2020-08-22 18:47:57 +05:30
Kovid Goyal
411da596b4
The Apple build is working 2020-08-22 18:47:57 +05:30
Kovid Goyal
01b0fba8ad
Auto fix excess blank lines 2020-08-22 18:47:56 +05:30
Kovid Goyal
9ff27782de
Remove useless __future__ imports
Not needed on python3
2020-08-22 18:47:55 +05:30
Kovid Goyal
29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
Kovid Goyal
4d2a91ecf2
DRYer 2020-06-05 20:27:18 +05:30
Kovid Goyal
b2c50c0c41
Make macOS signing code re-useable 2020-06-05 20:16:18 +05:30
Kovid Goyal
50a19e2b75
Switch to using QEMU VMs for building calibre on macOS and Windows
The VM performance is better and QEMU is more
hackable/automatable than VirtualBox. Also paves the way to do the
building on remote servers if needed.
2020-05-30 14:48:47 +05:30
Kovid Goyal
2d61ed50d9
Remove unused variable 2020-02-21 10:48:02 +05:30
Kovid Goyal
ff4316bc93
Make it easier to set calibre environment variables on macOS 2020-01-02 09:52:25 +05:30
Kovid Goyal
e24e4b0a58
macOS: Fix PDF Output not working when running ebook-convert via symlink on the command line. Fixes #1857377 [ebook-convert hangs on rendering (possible packaging issue)](https://bugs.launchpad.net/calibre/+bug/1857377)
It really grinds my gears that this is necessary, but with macOS...
2019-12-24 19:55:20 +05:30
Kovid Goyal
e082b67a6e
Fix #1856720 [Calibre activates discrete gpu on MacBook Pro](https://bugs.launchpad.net/calibre/+bug/1856720) 2019-12-17 20:56:08 +05:30
Kovid Goyal
f1ce7c0cf9
Dont exec a symlink in the codesign placeholders
Instead use the full path to the actual binary in the outermost bundle
2019-12-07 15:30:29 +05:30
Kovid Goyal
5c1b69f5b9
Add hyphen dependency 2019-11-30 17:58:57 +05:30
Kovid Goyal
10d5d8b6bc
Fix a regression in 4.0 that broke rendering of PDF covers for PDF files that used JPEG2000 compression. Fixes #1847567 [Cover generation from PDF files is not working](https://bugs.launchpad.net/calibre/+bug/1847567) 2019-10-17 11:10:42 +05:30
Kovid Goyal
b698e78547
time formatting 2019-10-04 07:34:54 +05:30
Kovid Goyal
3ce1c8bd63
Use UDBZ dmg files for best compression 2019-09-19 16:31:12 +05:30
Kovid Goyal
5196b29005
Notarize macOS builds 2019-09-18 18:55:50 +05:30