mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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'
This commit is contained in:
parent
b74ca85fd6
commit
b7cf508da4
@ -256,6 +256,8 @@ class Install(Develop):
|
|||||||
help='Where to put the calibre binaries. Default is <root>/bin')
|
help='Where to put the calibre binaries. Default is <root>/bin')
|
||||||
parser.add_option('--staging-sharedir',
|
parser.add_option('--staging-sharedir',
|
||||||
help='Where to put the calibre data files. Default is <root>/share')
|
help='Where to put the calibre data files. Default is <root>/share')
|
||||||
|
parser.add_option('--system-plugins-location',
|
||||||
|
help='Path to a directory from which the installed calibre will load plugins')
|
||||||
self.add_postinstall_options(parser)
|
self.add_postinstall_options(parser)
|
||||||
|
|
||||||
def install_files(self):
|
def install_files(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user