[Python-modules-commits] r2225 - in /packages/python-tclink: ./ branches/ branches/upstream/ branches/upstream/current/ branches/upstream/current/setup.py tags/

bzed-guest at users.alioth.debian.org bzed-guest at users.alioth.debian.org
Wed May 2 19:49:15 UTC 2007


Author: bzed-guest
Date: Wed May  2 19:49:14 2007
New Revision: 2225

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=2225
Log:
[svn-inject] Installing original source of python-tclink

Added:
    packages/python-tclink/
    packages/python-tclink/branches/
    packages/python-tclink/branches/upstream/
    packages/python-tclink/branches/upstream/current/
    packages/python-tclink/branches/upstream/current/setup.py
    packages/python-tclink/tags/

Added: packages/python-tclink/branches/upstream/current/setup.py
URL: http://svn.debian.org/wsvn/python-modules/packages/python-tclink/branches/upstream/current/setup.py?rev=2225&op=file
==============================================================================
--- packages/python-tclink/branches/upstream/current/setup.py (added)
+++ packages/python-tclink/branches/upstream/current/setup.py Wed May  2 19:49:14 2007
@@ -1,0 +1,48 @@
+"""
+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
+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 = machine_info.replace(' ', '-')
+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 at trustcommerce.com",
+    url="http://www.trustcommerce.com/tclink.php",
+    ext_modules=[ tclink_extension ]
+    )
+    




More information about the Python-modules-commits mailing list