[BangPypers] Problem in setup.py file

2015-03-03 Thread Priyal Jain
Hi, I want to install my project as a directory rather than as a zipfile. How to write setup.py file to install project as a directory. I tried by giving flag, zip_safe = False inside setup() from setuptools, but it is still installing my project as .egg not as directory. Thanks Regards Priyal

[BangPypers] how to see each line result in python

2015-03-03 Thread narayan naik
hi, i have face detection code as import cv2 import sys def detect(path): img = cv2.imread(path) cascade = cv2.CascadeClassifier("/home/nv/haarcascade_frontalface_alt.xml") rects = cascade.detectMultiScale(img, 1.3, 4, cv2.cv.CV_HAAR_SCALE_IMAGE, (20,20)) if len(rects) == 0:

Re: [BangPypers] how to see each line result in python

2015-03-03 Thread Gora Mohanty
On 3 March 2015 at 18:50, narayan naik wrote: [...] > I want to see what happens in each line.I know what happens in > theoritically but i want each line result.is i possible. What you seem to be looking for is a Python debugger. Try pdb: See, e.g., https://pythonconquerstheuniverse.wordpress.co

Re: [BangPypers] Problem in setup.py file

2015-03-03 Thread kracekumar ramaraju
Hi Probably Sharing setup.py may help. Django project does similar thing https://github.com/django/django/blob/master/setup.py and works. (directory)➜ ~ pip install django (directory)➜ ~ ls /Users/kracekumar/Envs/directory/lib/python2.7/site-packages/django __init__.py __init__.pyc apps

Re: [BangPypers] Problem in setup.py file

2015-03-03 Thread Priyal Jain
Hi, My setup.py file is: from setuptools import setup, find_packages setup(name = "abc", version = "0.1", description = "Python version of abc Administrator", author = "Priyal Jain", author_email = "jainpriyal...@gmail.com", license="Apache 2.0"