From 2f31ce656b9ff9edc7f43af2e41d5b023fe0496f Mon Sep 17 00:00:00 2001 From: "elias.bachaalany" Date: Fri, 16 Oct 2009 12:07:18 +0000 Subject: [PATCH] build.py: now build.py will use the "IDA" environment variable (if it exists) to tell where the SDK is. (for example if IDA=$HOME/idasdk, then build will use $IDA/include and $IDA/libXXXXX) --- build.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 2406127..385e736 100644 --- a/build.py +++ b/build.py @@ -23,8 +23,11 @@ from distutils import sysconfig VERBOSE = True IDA_MAJOR_VERSION = 5 IDA_MINOR_VERSION = 4 -IDA_SDK = ".." + os.sep + "swigsdk-versions" + os.sep + "%d.%d" % (IDA_MAJOR_VERSION, IDA_MINOR_VERSION) -#IDA_SDK = ".." + os.sep + ".." +if os.environ.has_key('IDA'): + IDA_SDK = os.environ['IDA'] +else: + IDA_SDK = ".." + os.sep + "swigsdk-versions" + os.sep + "%d.%d" % (IDA_MAJOR_VERSION, IDA_MINOR_VERSION) + # End of user configurable options # IDAPython version @@ -75,7 +78,8 @@ BINDIST_MANIFEST = [ "examples/ex_func_chooser.py", "examples/ex_choose2.py", "examples/ex_debug_names.py", - "examples/ex_graph.py" + "examples/ex_graph.py", + "examples/ex_dbg.py" ] # List files for the source distribution (appended to binary list)