Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b54a0957e3 
							
						 
					 
					
						
						
							
							Replace use of atexit  
						
						
						
						
					 
					
						2025-07-15 14:12:12 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							abd93cd457 
							
						 
					 
					
						
						
							
							Workaround for the execrable qmake mistakenly thinking its setuid when run with uid==0 and euid!=0  
						
						... 
						
						
						
						Instead of dropping and regaining privileges, fork and run sub commands
in child with uid!=0 
						
						
					 
					
						2025-07-15 14:07:21 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5c7dc9613b 
							
						 
					 
					
						
						
							
							Automated conversion of % format specifiers  
						
						... 
						
						
						
						Using ruff. Does not change any translatable strings.
There are still several thousand usages of % left that ruff wont
auto-convert. Get to them someday. 
						
						
					 
					
						2025-01-27 10:58:48 +05:30 
						 
				 
			
				
					
						
							
							
								un-pogaz 
							
						 
					 
					
						
						
						
						
							
						
						
							19994000c9 
							
						 
					 
					
						
						
							
							use f-string instead of format call (extra-edit)  
						
						... 
						
						
						
						ruff 'UP030,UP032' --extend-exclude "src/calibre/*" !partial 
						
						
					 
					
						2025-01-24 11:14:16 +01:00 
						 
				 
			
				
					
						
							
							
								un-pogaz 
							
						 
					 
					
						
						
						
						
							
						
						
							047ebcffe4 
							
						 
					 
					
						
						
							
							convert some legacy percent format (manual)  
						
						... 
						
						
						
						ruff 'UP031' 
						
						
					 
					
						2025-01-24 11:14:16 +01:00 
						 
				 
			
				
					
						
							
							
								un-pogaz 
							
						 
					 
					
						
						
						
						
							
						
						
							0560b429bf 
							
						 
					 
					
						
						
							
							convert some legacy percent format (auto-fix)  
						
						... 
						
						
						
						ruff 'UP031' 
						
						
					 
					
						2025-01-24 11:14:16 +01:00 
						 
				 
			
				
					
						
							
							
								un-pogaz 
							
						 
					 
					
						
						
						
						
							
						
						
							37771022ce 
							
						 
					 
					
						
						
							
							uniform string quote (auto-fix)  
						
						... 
						
						
						
						ruff 'Q' 
						
						
					 
					
						2025-01-24 11:14:14 +01:00 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d10c85ba5d 
							
						 
					 
					
						
						
							
							Cleanup previous PR  
						
						
						
						
					 
					
						2024-06-17 10:34:46 +05:30 
						 
				 
			
				
					
						
							
							
								wrvsrx 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							342d9f6900 
							
						 
					 
					
						
						
							
							Avoid reordering subcommands  
						
						
						
						
					 
					
						2024-06-17 00:06:11 +08:00 
						 
				 
			
				
					
						
							
							
								wrvsrx 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							80ff907bfd 
							
						 
					 
					
						
						
							
							Allow setting more local resource files from cli  
						
						
						
						
					 
					
						2024-06-16 22:08:06 +08:00 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							53b74283a4 
							
						 
					 
					
						
						
							
							sort imports in all python files  
						
						
						
						
					 
					
						2024-03-30 13:02:22 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1f296569f3 
							
						 
					 
					
						
						
							
							Use a timestamp of now rather than 0 for the sdist tarball  
						
						
						
						
					 
					
						2023-09-28 09:56:42 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							879ebdf68e 
							
						 
					 
					
						
						
							
							Reset all dates to zero in sdist tarball  
						
						
						
						
					 
					
						2023-09-28 08:39:28 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							cbf569bb06 
							
						 
					 
					
						
						
							
							...  
						
						
						
						
					 
					
						2023-03-16 07:49:09 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f21f1b227b 
							
						 
					 
					
						
						
							
							Fix a regression in the previous release that caused some generated resources to be not included in the released source tarball  
						
						
						
						
					 
					
						2023-03-15 09:37:06 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							24c460faec 
							
						 
					 
					
						
						
							
							also upgrade code in setup folder  
						
						
						
						
					 
					
						2022-01-08 12:15:18 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dafa08e921 
							
						 
					 
					
						
						
							
							Fix path used to init_calibre module installation  
						
						... 
						
						
						
						Fixes  #1553  (Fix python site-package libdir creation in FreeBSD) 
					
						2021-12-17 17:23:35 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7632beb8e0 
							
						 
					 
					
						
						
							
							Replace use of distutils to get installation location for init_env.py  
						
						
						
						
					 
					
						2021-12-13 20:29:35 +05:30 
						 
				 
			
				
					
						
							
							
								Eli Schwartz 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b7cf508da4 
							
						 
					 
					
						
						
							
							setup: fix installing without develop mode + system plugins option  
						
						... 
						
						
						
						options for Develop() are not automatically added to Install(), so the
new option in commit 8fb6d5f37e8055ce720bd0b1d56587f88c0071f285966ba17e72b2b12672aa73
only worked for the former. And since consolidate_paths unconditionally
checked opts.system_plugins_location, trying to run an ordinary install
ended in:
  File "/build/calibre-git/src/calibre/setup/install.py", line 117, in consolidate_paths
    self.system_plugins_loc = opts.system_plugins_location
AttributeError: 'Values' object has no attribute 'system_plugins_location' 
						
						
					 
					
						2021-04-11 13:27:32 -04:00 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ea74ad02e6 
							
						 
					 
					
						
						
							
							Add an option to ./setup.py install to set the system plugins location  
						
						
						
						
					 
					
						2021-04-09 20:05:52 +05:30 
						 
				 
			
				
					
						
							
							
								Kovid Goyal 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9b99248382 
							
						 
					 
					
						
						
							
							Dont add .github to the source tarball  
						
						
						
						
					 
					
						2021-03-04 20:55:47 +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 
						 
				 
			
				
					
						
							
							
								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