[Pyrex] Newbie question
philippe at philippecmartin.com
philippe at philippecmartin.com
Thu Jun 30 10:57:00 CEST 2005
Hi,
I am very new to Pyrex.
My ultimate goal is to give access to my product (99% Python, 1% C) through a
C interface (.o, .lib, .a, ....) so external applications (we'll say written
in C) can link to the lib and have access to my product.
My understanding is that I can do this with Pyrex (under Linux _and_ Windows):
[EXTERN PROGRAM CODE]===>Link==> [PYREX GENERATED CODE] ==>Call==> [MY *.PYC]
Q1) Am I correct ?
Q2) I am trying to make in "Pyrex-0.9.3/Demos" and am getting the following
errors - anything obvious ?
PS: I'm under Linux MDK 10.1
Thanks,
Philippe
***********************
[root at pcmsc Demos]# make all
python Setup.py build_ext --inplace
running build_ext
building 'primes' extension
Traceback (most recent call last):
File "Setup.py", line 12, in ?
cmdclass = {'build_ext': build_ext}
File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "/usr/lib/python2.4/distutils/command/build_ext.py", line 279, in run
self.build_extensions()
File "/usr/lib/python2.4/distutils/command/build_ext.py", line 405, in
build_extensions
self.build_extension(ext)
File "/usr/lib/python2.4/distutils/command/build_ext.py", line 442, in
build_extension
sources = self.swig_sources(sources, ext)
TypeError: swig_sources() takes exactly 2 arguments (3 given)
--
*************************************
Philippe C. Martin
SnakeCard, LLC
www.snakecard.com
+1 405 694 8098
*************************************
More information about the Pyrex
mailing list