Back to index

python-bcrypt  0.2
setup.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 # Copyright (c) 2006 Damien Miller <djm@mindrot.org>
00004 #
00005 # Permission to use, copy, modify, and distribute this software for any
00006 # purpose with or without fee is hereby granted, provided that the above
00007 # copyright notice and this permission notice appear in all copies.
00008 #
00009 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
00010 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
00011 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
00012 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00013 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00014 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
00015 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00016 
00017 # $Id: setup.py,v 1.3 2010/06/13 23:18:52 djm Exp $
00018 
00019 import sys
00020 try:
00021        from setuptools import setup, Extension
00022 except ImportError:
00023        from distutils.core import setup, Extension
00024  
00025 VERSION = "0.2"
00026  
00027 if __name__ == '__main__':
00028        bcrypt = Extension('bcrypt._bcrypt',
00029               sources = ['bcrypt/bcrypt_python.c', 'bcrypt/blowfish.c',
00030                   'bcrypt/bcrypt.c'])
00031        setup( name = "py-bcrypt",
00032               version = VERSION,
00033               author = "Damien Miller",
00034               author_email = "djm@mindrot.org",
00035               url = "http://www.mindrot.org/py-bcrypt.html",
00036               description = "Blowfish password hashing",
00037               long_description = """\
00038 py-bcrypt is an implementation the OpenBSD Blowfish password hashing
00039 algorithm, as described in "A Future-Adaptable Password Scheme" by 
00040 Niels Provos and David Mazieres.
00041 
00042 This system hashes passwords using a version of Bruce Schneier's
00043 Blowfish block cipher with modifications designed to raise the cost
00044 of off-line password cracking. The computation cost of the algorithm 
00045 is parametised, so it can be increased as computers get faster.
00046 """,
00047               license = "BSD",
00048               packages = ['bcrypt'],
00049               ext_modules = [bcrypt]
00050             )
00051