Permalink
Browse files

distutils, install instructions

  • Loading branch information...
1 parent bd65445 commit 41a8104ca9ae5a20e6561c35ecec3a16307cd904 Sean committed Sep 3, 2009
Showing with 51 additions and 2 deletions.
  1. +11 −0 README
  2. +18 −2 mythrip
  3. +22 −0 setup.py
View
@@ -0,0 +1,11 @@
+To run mythrip from the unpacked distributed tarball, run:
+
+ $ ./mythrip
+
+To install mythrip, run (as root):
+
+ # python setup.py install
+
+..and start it with:
+
+ $ mythrip
View
@@ -4,9 +4,25 @@
# mythrip: GUI tool to export MythTV recordings to various portable media files, and manage recordings in general
-
# standard python stuff
-import os, shutil, sys, mythtv, threading, subprocess, socket, re, time, signal, stat, cPickle, base64, StringIO, traceback
+import os, shutil, sys, threading, subprocess, socket, re, time, signal, stat, cPickle, base64, StringIO, traceback
+
+# add to the sys.path if this prog is being run from a known path
+dir = os.path.split(__file__)[0]
+
+pathMap = {"/usr/bin" : "/usr/share/mythrip",
+ "/usr/local/bin" : "/usr/local/share/mythrip"}
+
+if pathMap.has_key(dir):
+ addPath = pathMap[dir]
+ sys.path.append( addPath )
+
+# we should hopefully have this somewhere in sys.path at this point
+try:
+ import mythtv
+except Exception, e:
+ print "Failed to find mythtv module: %s" % e
+ sys.exit()
# wxpython
import wx
View
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+# nab our smrt version
+import sys, os, glob
+from distutils.core import setup
+
+mythtvfiles = glob.glob('mythtv/*py')
+
+setup ( name="Mythrip",
+ version = '0.9.0',
+ license = "GPLv2",
+ author = "Sean McLean",
+ author_email = "smclean_no@spam_gmail.com",
+ url = "http://mythrip.longstair.com",
+ description = "wxWidgets GUI to encode reportings from MythTV",
+ long_description = "MythRip is a wxWidgets GUI to encode reportings from MythTV, licensed under the GPLv2",
+ data_files = [ ('/usr/bin/', ['mythrip'] ),
+ ('/usr/share/mythrip/mythtv', mythtvfiles )
+ ],
+
+ )
+

0 comments on commit 41a8104

Please sign in to comment.