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
try:
from meliae import loader
except:
pass
from gi.repository import GLib, GObject, Pango, Gtk, WebKit
print "Unable to import meliae. Object memory analysis disabled."
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
from pyrasite.utils import setup_logger, run, humanize_bytes
......
......@@ -12,12 +12,6 @@ except ImportError:
print "We require meliae to be installed."
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',
version=version,
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