setup.py 1.16 KB
from distutils.core import setup, Extension

tn3270 = Extension(
		'tn3270',
		define_macros = [
			('PACKAGE_NAME', '\"python-tn3270\"'), 
			('PACKAGE_VERSION', '\"5.2\"')
		],
		include_dirs = ['src/include'],
		libraries = ['ipc3270'],
		sources = [
			'src/action/type.c',
			'src/module/init.c',
			'src/session/type.c',
			'src/action/init.cc',
			'src/action/methods.cc',
			'src/action/new.cc',
			'src/action/tools.cc',
			'src/module/properties.cc',
			'src/session/network.cc',
			'src/session/tools.cc',
			'src/session/get.cc',
			'src/session/init.cc',
			'src/session/wait.cc',
			'src/session/misc.cc',
			'src/session/set.cc',
			'src/session/attributes.cc',
			'src/session/actions.cc',
			'src/module/windows/init.cc',
			'src/module/windows/tools.cc'
		])

setup ( name = 'tn3270',
	version = '5.2',
	description = 'Python bindings for lib3270/pw3270.',
	author = 'Perry Werneck',
	author_email = 'perry.werneck@gmail.com',
	url = 'https://github.com/PerryWerneck/python-tn3270',
	long_description = '''
This is an extension allowing tn3270 acess for python applications
using lib3270 directly or ipc calls to an enabled pw3270 window.
''',	
	ext_modules = [ tn3270 ])