2002-04-03 18:45:09 -07:00
|
|
|
#! /usr/bin/env python
|
|
|
|
from distutils.core import setup, Extension
|
|
|
|
|
|
|
|
setup(name="amkCrypto",
|
|
|
|
version="1.9a1",
|
|
|
|
description="Cryptographic modules for Python.",
|
|
|
|
author="A.M. Kuchling",
|
|
|
|
author_email="akuchlin@mems-exchange.org",
|
|
|
|
url="http://pycrypto.sourceforge.net",
|
|
|
|
|
|
|
|
packages = ["Crypto", "Crypto.Hash", "Crypto.Cipher", "Crypto.Util",
|
|
|
|
"Crypto.PublicKey"],
|
|
|
|
package_dir = { "Crypto":"." },
|
|
|
|
ext_modules = [
|
|
|
|
# Hash functions
|
|
|
|
Extension("Crypto.Hash.MD2",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["hash/MD2.c"]),
|
|
|
|
Extension("Crypto.Hash.MD4",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["hash/MD4.c"]),
|
|
|
|
Extension("Crypto.Hash.RIPEMD",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["hash/RIPEMD.c"]),
|
2002-04-03 21:10:37 -07:00
|
|
|
|
|
|
|
# Block encryption algorithms
|
2002-04-03 22:40:05 -07:00
|
|
|
Extension("Crypto.Cipher.AES",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["block/AES.c"]),
|
2002-04-03 21:46:09 -07:00
|
|
|
Extension("Crypto.Cipher.ARC2",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["block/ARC2.c"]),
|
|
|
|
Extension("Crypto.Cipher.Blowfish",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["block/Blowfish.c"]),
|
|
|
|
Extension("Crypto.Cipher.CAST",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["block/CAST.c"]),
|
2002-04-03 21:10:37 -07:00
|
|
|
Extension("Crypto.Cipher.DES",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["block/DES.c"]),
|
2002-04-03 21:46:09 -07:00
|
|
|
Extension("Crypto.Cipher.DES3",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["block/DES3.c"]),
|
|
|
|
Extension("Crypto.Cipher.IDEA",
|
|
|
|
include_dirs=['src/'],
|
|
|
|
sources=["block/IDEA.c"]),
|
|
|
|
# Extension("Crypto.Cipher.RC5",
|
|
|
|
# include_dirs=['src/'],
|
|
|
|
# sources=["block/RC5.c"]),
|
2002-04-03 18:45:09 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|