Commit 9e2fc7f4 authored by Luke Macken's avatar Luke Macken

Allow pyrasite to be installed without pygobject. Complain when running the gui.

parent f1afd93d
...@@ -35,8 +35,13 @@ from random import randrange ...@@ -35,8 +35,13 @@ from random import randrange
try: try:
from meliae import loader from meliae import loader
except: except:
pass print "Unable to import meliae. Object memory analysis disabled."
from gi.repository import GLib, GObject, Pango, Gtk, WebKit try:
from gi.repository import GLib, GObject, Pango, Gtk, WebKit
except ImportError:
print "Unable to find pygobject3. Please install the 'pygobject3' "
print "package on Fedora, or 'python-gobject-dev on Ubuntu."
sys.exit(1)
import pyrasite import pyrasite
from pyrasite.utils import setup_logger, run, humanize_bytes from pyrasite.utils import setup_logger, run, humanize_bytes
......
...@@ -12,12 +12,6 @@ except ImportError: ...@@ -12,12 +12,6 @@ except ImportError:
print "We require meliae to be installed." print "We require meliae to be installed."
exit(1) exit(1)
try:
from gi.repository import GLib, GObject, Pango, Gtk, WebKit
except ImportError:
print "We require python-gobject-dev installed. Use: apt-get install python-gobject-dev"
exit(1)
setup(name='pyrasite', setup(name='pyrasite',
version=version, version=version,
description="Inject code into a running Python process", description="Inject code into a running Python process",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment