From 3dda0800cdafc1f21196981bdbb3dfbf7487b487 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 4 Oct 2019 15:41:54 -0300 Subject: [PATCH] Adding standard setup.py file. --- setup.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+), 0 deletions(-) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..77e51a3 --- /dev/null +++ b/setup.py @@ -0,0 +1,32 @@ +from distutils.core import setup, Extension + +tn3270 = Extension('tn3270', + define_macros = [('MAJOR_VERSION', '5'), ('MINOR_VERSION', '2')], + include_dirs = ['src/include'], + libraries = ['ipc3270'], + library_dirs = ['/usr/lib64'], + 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' + ]) + +setup ( name = 'tn3270', + version = '5.2', + description = 'TN3270 module.', + ext_modules = [ tn3270 ]) + -- libgit2 0.21.2