1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
"""
Python Distutils Script for TCLink
distutils documentation
http://www.python.org/doc/current/dist
TClink
http://www.trustcommerce.com/tclink.html
$Id: setup.py,v 1.3 2003/07/18 23:39:28 adam Exp $
"""
import os
import string
from distutils.core import setup, Extension
# if you have ssl/crypto libraries installed in non standard
# locations you may need to specify their location here
include_dirs = ['/usr/local/ssl', '/usr/local/openssl']
tclink_version="3.4"
machine_info = "%s %s"%( os.uname()[0], # sysname
os.uname()[-1] # machine
)
machine_info = string.replace(machine_info, ' ', '-')
pytclink_version = '"%s-Python-%s"'%(tclink_version,machine_info)
tclink_extension = Extension("tclink",
["py_tclink.c"],
libraries=["ssl", "crypto"],
define_macros=[('TCLINK_VERSION',pytclink_version)],
include_dirs = include_dirs
)
setup(
name="TCLink",
version=tclink_version,
description="TrustCommerce Transaction Client Library",
author="TrustCommerce",
author_email="developer@trustcommerce.com",
url="http://www.trustcommerce.com/tclink.php",
ext_modules=[ tclink_extension ]
)
|