Split Phatch in different packages
The names of the packages should be:
- phatch (installed by a normal user)
- phatch-cli (command line interface, pyexiv2, libtiff)
- phatch-nautilus (python nautilus integration)
phatch
- depends: phatch-cli, python-wxversion, python-wxgtk2.8, xdg-utils
- suggests: blender, inkscape
- enhances: thunar
- include files:
* phatch/pyWx folder
* phatch/lib/pyWx folder
* linux/phatch.
phatch-cli
- depends python-imaging, python-notify, python-pyexiv2, libtiff-tools, locate|mlocate
- recommends: imagemagick, libjpeg-progs (jpegtran), exiftran, xcftools, dcraw (installed by default)
- include files: everything except:
* phatch/windows folder
* phatch/lib/windows folder
* phatch/pyWx folder
* phatch/lib/pyWx folder
* phatch/
* linux/phatch.1
* tests
phatch-nautilus
- (build?) depends python-nautilus
- depends phatch-wx, nautilus
- enhances: nautilus
- include files:
* linux/nautilus/
* phatch/
With this splitting, nautilus users should use phatch like this:
* sudo apt-get install phatch phatch-nautilus
Whiteboard
$ bzr diff
=== modified file 'phatch/
--- phatch/
+++ phatch/
@@ -20,11 +20,22 @@
from core.translation import _t
from core.config import SYSTEM_INSTALL
from lib.desktop import create_droplet
-from lib.thunar import thunar_exists, create_
-from lib.nautilusExt
+
from unicoding import exception_
from core.lib.formField import IMAGE_READ_
+try:
+ from lib.thunar import thunar_exists, create_
+except ImportError:
+ def thunar_exists():
+ return False
+
+try:
+ from lib.nautilusExt
+except ImportError:
+ def nautilus_exists():
+ return False
+
WX_ENCODING = wx.GetDefaultPy
$ bzr commit -m "fix for splitting packages"
Committing to: /home/stani/
modified phatch/
Committed revision 619.