Commit Graph

74 Commits

Author SHA1 Message Date
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
Eli Schwartz 1cbdabbbb7 linux install: make sure init_calibre.py is listed in calibre-uninstall
It is written raw, not via write_template, so it was never added to the
manifest. Therefore, it would remain behind when uninstalling calibre.

Also change the order in which steps are executed, in order to write the
env module -- and add it to the manifest -- before the uninstaller is
created, rather than after (which would be too late).
2019-10-29 20:19:22 -04:00
Kovid Goyal 3a688453ab Go back to using git to fetch ephemeral translations
No significant speed difference and curl is failing on the macOS
Travis VM
2019-06-13 10:49:13 +05:30
Kovid Goyal 98ec15b970 Retry download on fail 2019-06-13 10:37:16 +05:30
Kovid Goyal 6acfcf12ef Use a tarball based download when downloading ephemeral translations 2019-06-13 09:33:50 +05:30
Eli Schwartz ae02c30a17 install: first install code, then binaries
Since installing code will also delete a directory tree, it should run
first. This avoids exotic cases where it deletes the binaries it just
installed.

Use case: co-installing python2/python3 using a bindir bundled with the
rest of calibre's code, in order to maintain an alternatives system
pointing symlinks in /usr/bin at the configured binaries.
2019-05-12 18:14:42 -04:00
Eli Schwartz 2a63948440 install: when using a staging root, setup XDG_DATA_DIRS magic
In order for xdg-utils programs to successfully install resources to the
staging root instead of /usr, this variable needs to be set and
additionally some arcane directories must be created that xdg-utils,
astoundingly, does not know how to just gracefully handle.

xdg-mime is simply hopeless as it does not have a --noupdate flag. When
using a staged install, copy it with shutil instead.
2019-05-12 18:14:42 -04:00
Kovid Goyal 5818091cad py3: Port string literals and file I/O in setup/install.py 2019-04-10 08:34:18 +05:30
Kovid Goyal f9f3d2b2fc py3: Have the generated launcher scripts use the correct python exe name 2019-04-10 08:26:50 +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
Kovid Goyal 98a2f53d90 Remove mathjax from bootstrap since it is now under resources 2019-01-04 21:59:01 +05:30
Kovid Goyal 556c32b6b8 Add man pages to the source tarball 2017-07-04 13:06:33 +05:30
Zoltán Mizsei 11e2e05c06 Source based dev env supported on Haiku 2017-01-26 13:10:23 +01:00
Kovid Goyal 1c389964cc Get list of common user-agents during bootstrap 2016-07-20 00:06:49 +05:30
Kovid Goyal af21b0e278 ... 2016-06-22 11:34:19 +05:30
Kovid Goyal deb68118e1 Add a --ephemeral option to bootstrap to speed up fetching of translations 2016-06-22 11:24:42 +05:30
Kovid Goyal f451b173ed Change bootstrap order 2016-05-03 11:09:36 +05:30
Kovid Goyal 6b5ecdc7e1 Add the mathjax version to the compiled js 2016-05-01 20:17:36 +05:30
Kovid Goyal 6531811efa Allow the server to serve up MathJax 2016-05-01 16:50:33 +05:30
Kovid Goyal fc7d4830a9 Switch to using a private openssl lib on OS X 2016-01-30 12:40:50 +05:30
Kovid Goyal 21e1c5842b A nicer way to isolate config files created during the build process 2015-11-16 10:59:14 +05:30
Kovid Goyal e83fc1c982 Only catch and ignore EnvironmentErrors when installing env module 2015-08-28 07:58:40 +05:30
Eli Schwartz c4f232b967 linux installer: ensure python libdir exists
When using a staging root, the environment module failed to install.
2015-08-28 07:56:03 +05:30
Kovid Goyal a3481c034a Dont launch separate interpreters for each sub-command during bootstrap 2015-07-15 13:47:11 +05:30
Kovid Goyal 9ef37427d3 Add a bootstrap sub-command to setup.py to ease building from a git checkout 2015-07-15 13:24:16 +05:30
Kovid Goyal ef09e886b3 Change all shebangs to use python2 2015-01-23 19:08:21 +05:30
Kovid Goyal d5f8e89ed3 Add version number to base directory in source tarball. Also fix generation of sources for the qt 5 betas 2014-08-08 18:31:14 +05:30
Kovid Goyal 63e8f0de50 Improve compression of source tarball 2014-08-01 10:33:47 +05:30
Kovid Goyal 7f0300a485 Implement extraction of user manual strings for translation 2014-06-17 14:36:21 +05:30
Kovid Goyal 6bc70dc2f4 Port sdist to use the new translations layout 2014-05-26 11:44:32 +05:30
Kovid Goyal 0753e908ab Add ISO 3166 country codes 2014-04-17 07:12:29 +05:30
Kovid Goyal 7d54d25844 Remove unused mount helper
Fixes #1225696 [Add patch to compile with CLANG](https://bugs.launchpad.net/calibre/+bug/1225696)
2013-09-15 21:58:18 +05:30
Kovid Goyal bd4e828668 Restore building iso639 in develop as it is needed 2013-07-03 22:23:49 +05:30
Kovid Goyal 509cc82d80 Allow running python setup.py develop froma git checkout 2013-07-03 21:58:44 +05:30
Kovid Goyal 709527f89e Move translations out of version control
Translations are tracked separately in launchpad, so there is
no longer any need to clutter up the main repo with translation
history.
2013-05-29 12:46:46 +05:30
Kovid Goyal 866bbaec91 Switch to using git to generate source tarballs 2013-05-28 16:49:21 +05:30
Kovid Goyal adda943e1b ... 2012-05-14 00:52:31 +05:30
Kovid Goyal 79edd7bfba Remove obsolete warning when running install as non root user 2012-02-08 21:06:35 +05:30
Kovid Goyal 7771162f71 IGN:Tag release 2011-12-16 14:28:43 +05:30
Kovid Goyal b10ce82a00 Distribute source compressed with xz instead of gzip for a 40% reduction in size 2011-12-02 16:29:03 +05:30
Kovid Goyal 9b7ee8c924 Complete removal of mount helper 2011-11-05 06:51:15 +05:30
Kovid Goyal 6c01b3cc67 Updated translations 2011-09-02 10:14:21 -06:00
Kovid Goyal 77e6d76e27 ... 2011-09-02 10:10:54 -06:00
Kovid Goyal f5f81cbe85 ... 2011-08-19 18:49:20 -06:00
Kovid Goyal 74de3b0cad Fix #793784 (Generated file in scm (template-functions.json)) 2011-06-06 17:39:19 -06:00
Kovid Goyal fb26c223a7 Fix #786290 (Enhancements for building on NetBSD) 2011-05-21 16:29:57 -06:00
Kovid Goyal efe64e5097 Change the shebang in the calibre launcher script on linux to explicitly use python2 rather than python 2011-03-24 10:20:46 -06:00
Kovid Goyal 815cac9520 Fix #4715 (Support FreeBSD out of the box (except USB)) 2010-02-27 10:50:12 -07:00