Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyrasite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
pyrasite
Commits
9e2fc7f4
Commit
9e2fc7f4
authored
Mar 13, 2012
by
Luke Macken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow pyrasite to be installed without pygobject. Complain when running the gui.
parent
f1afd93d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
pyrasite/tools/gui.py
pyrasite/tools/gui.py
+7
-2
setup.py
setup.py
+0
-6
No files found.
pyrasite/tools/gui.py
View file @
9e2fc7f4
...
...
@@ -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
...
...
setup.py
View file @
9e2fc7f4
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment