Split Phatch in different packages

Registered by Stani

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.desktop, phatch.xml (not in phatch-cli!)

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/lib/linux/nautilusExtension.py
  * linux/phatch.1
  * tests

phatch-nautilus
- (build?) depends python-nautilus
- depends phatch-wx, nautilus
- enhances: nautilus
- include files:
  * linux/nautilus/phatch_image_inspector.py
  * phatch/lib/linux/nautilusExtension.py

With this splitting, nautilus users should use phatch like this:
* sudo apt-get install phatch phatch-nautilus

Blueprint information

Status:
Complete
Approver:
Stani
Priority:
High
Drafter:
Stani
Direction:
Approved
Assignee:
Stani
Definition:
Approved
Series goal:
Accepted for 0.2
Implementation:
Implemented
Milestone target:
milestone icon 0.2.1
Started by
Stani
Completed by
Stani

Related branches

Sprints

Whiteboard

$ bzr diff
=== modified file 'phatch/linux/droplet.py'
--- phatch/linux/droplet.py 2009-04-14 22:29:45 +0000
+++ phatch/linux/droplet.py 2009-05-29 15:18:50 +0000
@@ -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_thunar_action
-from lib.nautilusExtension import nautilus_exists, create_nautilus_extension
+
 from unicoding import exception_to_unicode
 from core.lib.formField import IMAGE_READ_MIMETYPES

+try:
+ from lib.thunar import thunar_exists, create_thunar_action
+except ImportError:
+ def thunar_exists():
+ return False
+
+try:
+ from lib.nautilusExtension import nautilus_exists, create_nautilus_extension
+except ImportError:
+ def nautilus_exists():
+ return False
+
 WX_ENCODING = wx.GetDefaultPyEncoding()

$ bzr commit -m "fix for splitting packages"
Committing to: /home/stani/sync/python/phatch/trunk/
modified phatch/linux/droplet.py
Committed revision 619.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.