Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flask wdb project to replace werkzeug debugger with a hack
- Loading branch information
1 parent
480d42f
commit ed115f1
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import wdb; from wdb.ext import WdbMiddleware; from werkzeug import debug; debug.DebuggedApplication = WdbMiddleware # This is so much a hack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import sys | ||
import os | ||
from setuptools import setup | ||
from distutils.sysconfig import get_python_lib | ||
|
||
site_packages_path = get_python_lib().replace(sys.prefix + os.path.sep, '') | ||
|
||
setup( | ||
name="flask-wdb", | ||
version='0.1.0', | ||
author="Florian Mounier @ kozea", | ||
author_email="florian.mounier@kozea.fr", | ||
url="http://github.com/Kozea/wdb", | ||
license='GPLv3', | ||
install_requires=['wdb', 'werkzeug'], | ||
data_files=[(site_packages_path, ['flask-wdb.pth'])], | ||
description="Replace flask werkzeug debugger with wdb." | ||
) |