cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
setup.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # If you get an "error: Python.h: No such file or directory" on running
4 # this then you need to install the python-dev package.
5 
6 from distutils.core import setup, Extension
7 import sys
8 
9 if sys.platform == "win32":
10  ext = Extension("cryptlib_py",
11  sources=["bindings/python.c"],
12  library_dirs=['../binaries'],
13  libraries=['cl32'])
14 else:
15  ext = Extension("cryptlib_py",
16  sources=["bindings/python.c"],
17  library_dirs=['..'],
18  libraries=['cl'])
19 
20 setup(name="cryptlib_py", ext_modules=[ext])