| To: | Stan Cox <scox@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [pcp] python bindings |
| From: | Nathan Scott <nathans@xxxxxxxxxx> |
| Date: | Thu, 14 Jun 2012 20:28:08 +1000 (EST) |
| Cc: | pcp@xxxxxxxxxxx |
| In-reply-to: | <1859167160.955443.1339634764360.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx> |
|
Hi Stan, > I'll take a closer look at the code this evening when I have a bit more time,> but a couple of other very minor things from a cursory glance... I've pushed a few updates here that you could pull in if you like, mainly tweaks to bring the python wrappers more uptodate with current PCP interfaces. cheers. -- Nathan Changes committed to git://oss.sgi.com/nathans/pcpfans.git python src/python/.gitignore | 2 + src/python/pcp.py | 20 ----------------- src/python/pmapi.c | 55 ++++++++++++++----------------------------------- src/python/test_pcp.py | 2 - 4 files changed, 19 insertions(+), 60 deletions(-) commit 5bdffc6d0f3214d1d58c863ba67abfbbdd5bca6b Author: Nathan Scott <nathans@xxxxxxxxxx> Date: Thu Jun 14 20:08:08 2012 +1000 Add missing (new) error macros into python API. commit 72a83458264d94cbe90390cb1dbc10e2ef9a4311 Author: Nathan Scott <nathans@xxxxxxxxxx> Date: Thu Jun 14 20:05:22 2012 +1000 Add missing event type macros and flags to python API. commit 47e3cea2cf49ed04c64ee9adbf087bb8ce103683 Author: Nathan Scott <nathans@xxxxxxxxxx> Date: Thu Jun 14 17:54:13 2012 +1000 Remove deprecated calls to pmLoadASCIINamespace, we never want to expose that. commit d5fe8de7f803cc3de5ebebb3fbd8a9f29b04ddb0 Author: Nathan Scott <nathans@xxxxxxxxxx> Date: Thu Jun 14 17:37:09 2012 +1000 Update python gitignore file after successful install (.pyc file). commit ab6bf059fb35014342cca39aea5d71ad89861147 Author: Nathan Scott <nathans@xxxxxxxxxx> Date: Thu Jun 14 17:31:07 2012 +1000 Add gitignore file for python wrapper. commit f6dfa7a088ded526e835cef370bfa50a3bd6407d Author: Nathan Scott <nathans@xxxxxxxxxx> Date: Thu Jun 14 17:30:07 2012 +1000 Resolve python API build with current headers (ancient macros removed) This gets a clean src/python/pmapi.c build, resolving these deprecated macros: building 'pmapi' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c pmapi.c -o build/temp.linux-i686-2.7/pmapi.o pmapi.c: In function ‘initpmapi’: pmapi.c:121:22: error: ‘PMAPI_VERSION_1’ undeclared (first use in this function) pmapi.c:121:22: note: each undeclared identifier is reported only once for each function it appears in pmapi.c:231:47: error: ‘PM_LOG_VERS01’ undeclared (first use in this function) pmapi.c:247:44: error: ‘PM_ERR_BASE1’ undeclared (first use in this function) pmapi.c:267:22: error: ‘PM_ERR_LICENSE’ undeclared (first use in this function) pmapi.c:275:22: error: ‘PM_ERR_FILE’ undeclared (first use in this function) pmapi.c:297:22: error: ‘PM_ERR_NOASCII’ undeclared (first use in this function) pmapi.c:341:22: error: ‘PM_ERR_WANTACK’ undeclared (first use in this function) pmapi.c:345:22: error: ‘PM_ERR_OBJSTYLE’ undeclared (first use in this function) pmapi.c:347:22: error: ‘PM_ERR_PMCDLICENSE’ undeclared (first use in this function) pmapi.c:349:22: error: ‘PM_ERR_CTXBUSY’ undeclared (first use in this function) error: command 'gcc' failed with exit status 1 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pcp] python bindings, Mark Goodwin |
|---|---|
| Next by Date: | Re: [pcp] python bindings, Nathan Scott |
| Previous by Thread: | Re: [pcp] python bindings, Nathan Scott |
| Next by Thread: | Re: [pcp] python bindings, Stan Cox |
| Indexes: | [Date] [Thread] [Top] [All Lists] |