Kovid Goyal
addf9af51a
Fix generation of trnaslation template for website
2019-03-07 10:22:39 +05:30
Kovid Goyal
9695a6e1cc
Merge branch 'py3' of https://github.com/eli-schwartz/calibre
2019-02-26 08:39:42 +05:30
Eli Schwartz
3258c464e7
Port headless plugin to build on python2/python3
...
The only thing needed is to port the buildsystem to not pass strings
starting with a "b" as build flags.
2019-02-25 22:04:26 -05:00
Kovid Goyal
7d00c4b0f4
macOS: Respect the system setting for text insertion cursor blink time
...
This value can be changed with the following commands:
defaults write -g NSTextInsertionPointBlinkPeriodOff -float 500
defaults write -g NSTextInsertionPointBlinkPeriodOn -float 500
2019-02-25 09:16:06 +05:30
Kovid Goyal
e0d5a021dd
Fix #1812891 [calibre-3.38.1 tries to download mathjax during build]( https://bugs.launchpad.net/calibre/+bug/1812891 ) again
2019-02-01 13:38:48 +05:30
Kovid Goyal
a64579338c
Dont download MathJax if it is already present
...
Fixes #1812891 [calibre-3.38.1 tries to download mathjax during build](https://bugs.launchpad.net/calibre/+bug/1812891 )
2019-01-23 08:03:00 +05:30
Eli Schwartz
18ad088bda
build: preserve symlinks when installing
...
Without this, python's default behavior was to dereference the mathjax
symlinks and install the file contents instead.
2019-01-20 16:53:53 -05:00
Eli Schwartz
82617d3a74
build: add option to symlink to system mathjax installation
2019-01-18 08:40:44 -05:00
Eli Schwartz
6adedd8603
setup/mathjax: fallback to using packed versions of resources
...
Some mathjax distributions come with the unpacked versions removed as
per the upstream instructions for optimizing an installation. Only use
the unpacked versions if they exist; otherwise fallback on the packed
versions.
Also filter the .woff files to make sure they are actually .woff files,
since they may be files like fonts.dir, fonts.scale, .uuid (created by
xorg-mkfontdir, xorg-mkfontscale, fontconfig).
2019-01-18 08:40:44 -05:00
Kovid Goyal
2ae2d14d62
Rapydscript must be built after mathjax
2019-01-17 09:36:16 +05:30
Kovid Goyal
d08e0a33e1
Implement clean for mathjax builder
2019-01-04 22:15:26 +05:30
Kovid Goyal
98a2f53d90
Remove mathjax from bootstrap since it is now under resources
2019-01-04 21:59:01 +05:30
Kovid Goyal
c184fe37c7
Remove unused code
2019-01-04 21:54:57 +05:30
Kovid Goyal
f78a7dad58
Do not use a compressed archive for mathjax
...
Improves performance for local clients such as PDF output and the
viewer. Since we have now removed the old unbundled mathjax, the file
count in the resources directory does not go up too much.
2019-01-04 21:53:06 +05:30
Kovid Goyal
e47a2d888b
Update the SWIG bindings for chmlib
...
Also get rid of the xhm_extra module since
we dont care about searching CHM files and get_lcid can be
implemented in pure python.
2018-12-27 14:44:43 +05:30
Kovid Goyal
bf60631ce0
Avoid the need to use a patched version of MathJax
...
See https://github.com/mathjax/MathJax/pull/1453
2018-12-17 15:38:14 +05:30
Kovid Goyal
f6ef5f3cf7
Fix crash when compressing mathjax on CI servers
2018-12-13 18:48:23 +05:30
Kovid Goyal
dca2d1a51c
String changes
2018-12-10 08:36:28 +05:30
Kovid Goyal
8018891656
...
2018-10-19 10:30:54 +05:30
Kovid Goyal
17eff935eb
...
2018-10-19 10:16:01 +05:30
Kovid Goyal
79d7658ea3
Check fosshub queue status since the API has now been fixed
2018-10-03 20:30:05 +05:30
Kovid Goyal
e4795fcf88
oops
2018-10-03 08:39:47 +05:30
Kovid Goyal
826119e797
Use new fosshub upload API
2018-10-03 08:39:11 +05:30
Flaviu Tamas
8b9e401f32
Use builtin zlib in py3
2018-10-02 17:01:01 -04:00
Kovid Goyal
01a9fb6687
Fix #1794915 [setup.py build does not work due to UnicodeEncodeError]( https://bugs.launchpad.net/calibre/+bug/1794915 )
2018-09-28 09:47:35 +05:30
Kovid Goyal
4d4ffcff7c
Revert "Remove use of prints in the setup package since nowadays most systems are UTF-8 based anyway"
...
This reverts commit f4b358554942b1b13d4f07481a4767c527d94c70.
2018-09-28 09:44:41 +05:30
Flaviu Tamas
1270f32157
Only build monotonic on py2
2018-09-14 13:49:33 -04:00
Flaviu Tamas
46b521dfbf
Build hunspell in py3
...
The verbose old-style intialization is used because GCC 4.8 & MSVC don't
support the nicer `.foo = bar` style of initialization.
2018-09-12 22:41:57 -04:00
Kovid Goyal
be00d40d02
plugins_mirror cannot depend on polyglot
2018-09-10 21:04:25 +05:30
Kovid Goyal
3c10a86c65
setup.py build now runs under python3
2018-09-10 21:02:10 +05:30
Kovid Goyal
e125996ee6
Remove basestring from the setup package
2018-09-10 20:58:01 +05:30
Kovid Goyal
f39f3951f4
dict fixes in the setup package
2018-09-10 20:54:35 +05:30
Kovid Goyal
5bdb5b7c6c
Import fixes for the setup package
2018-09-10 20:44:16 +05:30
Kovid Goyal
cc9a11fba0
Port os.getcwdu to python 3
2018-09-10 20:20:26 +05:30
Kovid Goyal
5234e43f0e
Port future_builtins to polyglot
2018-09-10 20:12:01 +05:30
Kovid Goyal
f4b3585549
Remove use of prints in the setup package since nowadays most systems are UTF-8 based anyway
2018-09-10 19:55:49 +05:30
Kovid Goyal
a9e07efecd
The setup package now imports under python 3
2018-09-10 19:47:53 +05:30
Kovid Goyal
5c6ba41cca
oops
2018-09-10 19:42:20 +05:30
Kovid Goyal
778b3cf74e
Remove unused code
2018-09-10 19:37:42 +05:30
Kovid Goyal
1a928fc497
Remove unused code
2018-09-10 18:41:52 +05:30
Kovid Goyal
b9767b2b92
Move more databases to msgpack instead of pickle
2018-09-10 18:35:19 +05:30
Kovid Goyal
8b3ea8fb83
Replace more use of pickle for databases
2018-09-10 18:26:46 +05:30
Kovid Goyal
d8e24e4a19
Use msgpack instead of pickle for a couple more databases
2018-09-10 17:36:57 +05:30
Kovid Goyal
1d54c2f874
Use msgpack instead of pickle for ISO 639 and 3166 databases
2018-09-10 17:14:03 +05:30
Kovid Goyal
ce377076b9
Some py3 fixes for the setup module
2018-09-10 16:04:47 +05:30
Flaviu Tamas
01fbf09c0b
Undo redundant imports & new-style raises
...
New-style rasies need to be redone in a py2-friendly way, and the
redudant imports are redudnant and can safely be removed
2018-09-10 12:11:29 +05:30
Flaviu Tamas
655ab21b0b
Fix from __future__ import order
2018-09-10 12:11:29 +05:30
Flaviu Tamas
0889ee85ec
Fix syntax errors
...
Command used:
futurize --no-diffs -f libfuturize.fixes.fix_print_with_import -f lib2to3.fixes.fix_throw -f lib2to3.fixes.fix_numliterals -f lib2to3.fixes.fix_except -f lib2to3.fixes.fix_exec -f lib2to3.fixes.fix_raise -f lib2to3.fixes.fix_tuple_params -f lib2to3.fixes.fix_ne -j20 -w -n setup recipes src manual setup.py recipes/*.recipe
And manual adjustments of print((...)) -> print(...)
2018-09-10 12:11:28 +05:30
Kovid Goyal
9350caab4e
Fix invocation of setup.py in git hooks
2018-07-27 17:36:25 +05:30
Kovid Goyal
626d5aa1ce
Infrastructure for author name mapping
2018-07-17 15:32:58 +05:30