]> git.pld-linux.org Git - packages/calibre.git/blame - calibre-env_module.patch
Up to 0.9.37
[packages/calibre.git] / calibre-env_module.patch
CommitLineData
1289e1ae 1--- calibre/setup/install.py~ 2010-05-21 11:18:18.236682966 +0200
2+++ calibre/setup/install.py 2010-05-21 11:18:48.705841545 +0200
3@@ -132,20 +132,8 @@
4 self.setup_mount_helper()
5 self.install_files()
6 self.run_postinstall()
7- self.install_env_module()
8 self.success()
9
10- def install_env_module(self):
11- import distutils.sysconfig as s
12- libdir = s.get_python_lib(prefix=self.opts.staging_root)
13- if os.path.exists(libdir):
14- path = os.path.join(libdir, 'init_calibre.py')
15- self.info('Installing calibre environment module: '+path)
16- with open(path, 'wb') as f:
17- f.write(HEADER.format(**self.template_args()))
18- else:
19- self.warn('Cannot install calibre environment module to: '+libdir)
20-
21 def setup_mount_helper(self):
22 def warn():
23 self.warn('Failed to compile mount helper. Auto mounting of',
This page took 0.178717 seconds and 4 git commands to generate.