delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/05/12/17:55:48

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Sat, 13 May 2006 00:54:08 +0300
From: alex bodnaru <alexbodn AT 012 DOT net DOT il>
Subject: Re: Howto create extensions for PythonD
In-reply-to: <1147465565.398297.52230@g10g2000cwb.googlegroups.com>
To: djgpp AT delorie DOT com
Message-id: <44650400.7020809@alex3>
MIME-version: 1.0
X-Accept-Language: en-us, he
References: <1147465565 DOT 398297 DOT 52230 AT g10g2000cwb DOT googlegroups DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205
Debian/1.7.12-1.1
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

to use tcp/ip, a packet driver should be installed under dos for your
net card.

alex

bdurbin AT gmail DOT com wrote:
> This may be a little off topic for this group, but I wasn't sure where
> else to go with the question.  And since see Mr. Decker in here...
> 
> I have PythonD, DJGPP and DXE3GEN up and working.  My next step is that
> I need to create some Python extensions.  Is there a Hello World type
> of example of this in the DJGPP environment?  I've perused the stuff at
> the PythonD site and at http://www.python.org/doc/ext but I'm still
> left with questions regarding what the requirements are for the DJGPP
> environment.
> 
> I've set up the following environment vars:
> set PATH=c:\djgpp\bin;%PATH%
> set DJGPP=c:\djgpp\djgpp.env
> SET PYTHONHOME = C:/PythonD
> SET PYTHONDIR = C:\PythonD
> SET LD_LIBRARY_PATH=/dev/env/DJDIR/lib
> SET PYTHONCASEOK=1
> 
> Is that what I should really have LD_LIBRARY_PATH set to?  Or am I
> supposed to replace the /dev/env/DJDIR with C:\djgpp\lib?
> 
> But when I try to build a simple extension I get the following:
> 
> C:\EOL_P\test>C:\pythond\bin\python.exe setup.py build
> 
> running build
> running build_ext
> c:/pythond/bin/Modules/Setup
> building 'hello' extension
> c:\djgpp\bin/gcc.exe -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -DGLUT_IMPORT_LIB -Ic:/pythond/include/python2.4 -c
> hello_wrap.c -o build/temp.ms-dos-5-i786-2.4/hello_wrap.o
> In file included from c:/pythond/include/python2.4/Python.h:55,
>                  from hello_wrap.c:1:
> c:/pythond/include/python2.4/pyport.h:116:24: error: sys/select.h: No
> such file or directory (ENOENT)
> hello_wrap.c:3: warning: function declaration isn't a prototype
> hello_wrap.c:5: warning: function declaration isn't a prototype
> hello_wrap.c:17: warning: function declaration isn't a prototype
> NO PACKET DRIVER FOUND.
> error: command 'gcc.exe' failed with exit status 1
> 
> 
> Now, I looked for select.h and couldn't find anything with that name.
> I'm assuming that either my environment isn't correct, or that I have
> to adjust something in the PythonD\lib\python2.4\config\Makefile.
> Problem is, I have no idea what that would be!
> 
> Apologies for spamming on a noob support issue, but I never found an
> example of how to do extensions in the DJGPP environment.
> 
> Any tips or pointers to examples or references would be greatly
> appreciated.
> 
> Thanks a lot,
> Brent
> 
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019