From 89a5eb36adc644fe9003d282813be63881cb08e3 Mon Sep 17 00:00:00 2001 From: amai2012 Date: Sun, 3 Feb 2019 21:08:42 +0100 Subject: [PATCH] Add initial configuration file for Pytho C API --- cfg/python.cfg | 58 +++++++++++++++++++++++++++++++++++++++++++++ tools/donate-cpu.py | 14 ++++++----- 2 files changed, 66 insertions(+), 6 deletions(-) create mode 100644 cfg/python.cfg diff --git a/cfg/python.cfg b/cfg/python.cfg new file mode 100644 index 000000000..261541b84 --- /dev/null +++ b/cfg/python.cfg @@ -0,0 +1,58 @@ + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + false + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + false + + + + diff --git a/tools/donate-cpu.py b/tools/donate-cpu.py index e041567bb..7e59238c4 100644 --- a/tools/donate-cpu.py +++ b/tools/donate-cpu.py @@ -222,16 +222,18 @@ def scanPackage(workPath, cppcheck, jobs): print('Analyze..') os.chdir(workPath) libraries = ' --library=posix' - if hasInclude('temp', ['', '', '']): - libraries += ' --library=zlib' if hasInclude('temp', ['', '', '']): + libraries += ' --library=python' + if hasInclude('temp', ['', '', '']): + libraries += ' --library=zlib' # if hasInclude('temp', ['