Skip to content

Commit

Permalink
Remove ipdb dependency
Browse files Browse the repository at this point in the history
I just found out that ipdb actually uses IPython's own debugger. It only
wraps the set_trace method. Since we don't use set_trace() we can use
IPython.Debugger directly.
  • Loading branch information
flavioamieiro committed Feb 25, 2011
1 parent 5a1feb5 commit cd79a53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion bootstrap/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
nose
ipython
ipdb
6 changes: 3 additions & 3 deletions ipdbplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import sys
import ipdb
from IPython import ipapi
import IPython
from nose.plugins.base import Plugin

class iPdb(Plugin):
Expand Down Expand Up @@ -58,8 +58,8 @@ def debug(self, err):
stdout = sys.stdout
sys.stdout = sys.__stdout__
try:
ip = ipapi.get()
p = ipdb.Pdb(ip.options.colors)
ip = IPython.ipapi.get()
p = IPython.Debugger.Pdb(ip.options.colors)
p.reset()
p.interaction(None, tb)
finally:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
If you have any ideas about how to improve it, come and fork the code at http://github.com/flavioamieiro/nose-ipdb
""",
install_requires=['nose', 'ipython', 'ipdb'],
install_requires=['nose', 'ipython'],
license = 'GNU LGPL',
keywords = 'test unittest nose nosetests plugin debug ipdb ipython',
py_modules = ['ipdbplugin'],
Expand Down

0 comments on commit cd79a53

Please sign in to comment.