67 Commits

Author SHA1 Message Date
Christian Clauss
3e81179175 Fix more typos 2021-10-02 17:15:24 +02:00
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
618bf197e2
Fix more deprecation warnings in the test suite 2021-06-24 09:09:04 +05:30
Kovid Goyal
a37c14499c
Fix building of sqlite_extension on ancient Linux 2021-06-16 17:14:31 +05:30
Kovid Goyal
d8595e5bf5
Fix ICU build on Windows 2021-06-16 17:02:07 +05:30
Kovid Goyal
6d845cfa37
Generate db of compile commands for use by tools when building 2021-06-14 09:02:55 +05:30
Kovid Goyal
73a312dd64
Workaround for sip version mismatch on Arch 2021-05-13 08:40:37 +05:30
Kovid Goyal
d368c4f96e
Dont chdir as part of sip-build command
Instead chdir overall, makes the command simpler.
2021-05-13 07:48:08 +05:30
Kovid Goyal
c8b5289a34
Handle empty parser state stack 2021-03-20 21:14:14 +05:30
Kovid Goyal
370ece64b0
Add sanitize build option 2021-03-20 20:15:34 +05:30
Kovid Goyal
9765f4a81f
Add a build flag to build in debug mode 2021-03-20 16:53:15 +05:30
Kovid Goyal
0f2aff9a4a
Cleanup path handling when building on windows 2021-03-18 21:41:15 +05:30
Kovid Goyal
75586d8eb0
Always build on Windows with Visual Studio 2019 2021-03-18 21:22:31 +05:30
Kovid Goyal
b1c34ab520
Add support for building with c++14 2021-03-18 07:40:07 +05:30
Kovid Goyal
04ad7bc901
Remove workarounds that are not needed with the current versions of sip-build 2020-12-03 22:03:05 +05:30
Kovid Goyal
7a4b3f61ff
Move to SIP v5 2020-09-16 21:52:25 +05:30
Kovid Goyal
a4df5cc67b
Dont use -b flag when calling sip
Was inexplicably removed from SIP5
2020-09-14 12:26:08 +05:30
Kovid Goyal
9642eeea83
Also use macos in extensions.json 2020-09-09 19:28:07 +05:30
Kovid Goyal
7f6dce5218
Fix build failure missed one isosx instance 2020-09-09 15:56:14 +05:30
Kovid Goyal
13552bef07
isosx -> ismacos 2020-09-09 14:51:09 +05:30
Kovid Goyal
0213b80693
Tell MSVC our source files are UTF-8 2020-08-22 18:48:07 +05:30
Kovid Goyal
2e1c57a86c
... 2020-08-22 18:48:02 +05:30
Kovid Goyal
5a1b4430b2
Colorize compiler output on linux 2020-08-22 18:48:02 +05:30
Kovid Goyal
dd12f0a76e
Parallelize building sip files 2020-08-22 18:48:02 +05:30
Kovid Goyal
dc4e482799
Fully parallelize building of non-pyqt extensions 2020-08-22 18:48:02 +05:30
Kovid Goyal
ec167b7ac7
Get the linux frozen build working with py3 2020-08-22 18:47:56 +05:30
Kovid Goyal
520c46dfb9
Minor fixups for changes when removing py3 conditionals 2020-08-22 18:47:56 +05:30
Kovid Goyal
764e8bff7e
Remove py3 conditionals 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
fc1803a800
Remove obsolete workarounds for buggy distro Qt packages 2020-02-04 08:45:03 +05:30
Kovid Goyal
e2b730b3b2
Fix building of headless on macOS
Apparently we can link against both themesuport private and font
database private as they both contain the same symbol
2020-02-04 08:40:54 +05:30
Kovid Goyal
bf199d6bfa
Get podofo building on older compilers on linux 2019-09-13 09:12:33 +05:30
Eli Schwartz
d50a6ddc1b
use context managers to open files 2019-07-25 01:30:54 -04:00
Bernhard M. Wiedemann
53298f87ff
Sort input file list
so that calibre/plugins/lzma_binding.so builds in a reproducible way
in spite of indeterministic filesystem readdir order
and http://bugs.python.org/issue30461

See https://reproducible-builds.org/ for why this is good.
2019-07-01 14:47:32 +02:00
Kovid Goyal
e804e48747
Start work on building calibre on windows 2019-06-19 10:06:54 +05:30
Kovid Goyal
a08bdbeb4e
Dont depend on calibre in polyglot 2019-05-15 16:42:52 +05:30
Kovid Goyal
86ffa4f717
Allow running calibre under both python2 and python3 from the same source checkout 2019-04-10 13:47:10 +05:30
Kovid Goyal
9b0ed4204d
... 2019-03-26 08:24:54 +05:30
Kovid Goyal
f68c1f2672
DRYer 2019-03-26 08:24:12 +05:30
Kovid Goyal
f66d6f9fcf
Ensure init symbol is exported on py3 2019-03-26 08:14:46 +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
e125996ee6
Remove basestring from the setup package 2018-09-10 20:58:01 +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
499578beaa
Try to get unicode_names compiling on ancient compilers 2018-05-01 11:31:21 +05:30
Conrad Meyer
712edec636 Compatibility improvements for FreeBSD systems
Don't exclude libmtp on FreeBSD systems.

Don't exclude libusb on FreeBSD systems.  Our libusb has a different include
path structure and libname than Linux, but compiles fine once those are
corrected.

Correct path to py-sip on FreeBSD.  We install it to a different directory
than build_environment.py was looking in.
2017-12-26 13:01:13 -08:00
Kovid Goyal
9768d16334
Forgot that on macOS qmake generates .dylib files 2017-06-26 16:20:53 +05:30
Kovid Goyal
2291b2d2a0
Build the headless QPA backend on macOS as well 2017-06-26 14:56:58 +05:30
Kovid Goyal
aee8af31f3
Hide all symbols in the compiled python extensions on unix
They were already hidden on windows. Avoids the possibility of symbol
collisions and also means ld has to do less work when loading them
extensions.
2017-06-07 12:19:24 +05:30