Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
examples/ | 31-Jul-2010 | ||
Makefile | 31-Jul-2010 | 1.1K | |
neo_cgi.c | 31-Jul-2010 | 21.8K | |
neo_cgi.def | 31-Jul-2010 | 48 | |
neo_cs.c | 31-Jul-2010 | 4K | |
neo_util.c | 31-Jul-2010 | 15.2K | |
p_neo_util.h | 31-Jul-2010 | 2.5K | |
README.txt | 31-Jul-2010 | 2.8K | |
setup.py | 31-Jul-2010 | 3.8K | |
static.py | 31-Jul-2010 | 1.1K | |
upload.py | 31-Jul-2010 | 835 |
1 ------------------------ 2 Python Clearsilver Module 3 By Brandon Long 4 5 Windows port by David Jeske 6 ------------------------ 7 8 This is the python clearsilver module. You can see the online 9 documentation for the Python API here: 10 11 http://www.clearsilver.net/docs/python/ 12 13 COMPILING on UNIX 14 15 Compiling from source on Linux (UNIX) should be pretty 16 straightforward. Simply make sure that the Makefile and top level 17 rules.mk point to your Python installation of choice. Comments or 18 questions to blong (a] fiction.net 19 20 WINDOWS BINARY 21 22 If you are using Python2.2, we highly recommend you download the 23 pre-built binary. You can download a windows binary of the module from 24 the clearsilver download page here: 25 26 http://www.clearsilver.net/downloads/ 27 28 COMPILING on Windows 29 30 If you must compile on windows, here is the set of steps you need to 31 follow for Python22. Comments or questions to jeske (a] chat.net. 32 33 1) Download and Install Python2.2 from: 34 35 http://www.python.org/ftp/python/2.2.1/Python-2.2.1.exe 36 37 2) Download and Install Mingw32-2.0 and binutils from: 38 39 http://prdownloads.sourceforge.net/mingw/MinGW-2.0.0-3.exe?download 40 http://prdownloads.sourceforge.net/mingw/binutils-2.13-20020903-1.tar.gz?download 41 42 3) Download and Install UNIX Tools and Make from: 43 44 http://unxutils.sourceforge.net/UnxUtils.zip 45 46 http://prdownloads.sourceforge.net/mingw/make-3.79.1-20010722.tar.gz 47 48 **** ALTERNATIVELY ***** 49 50 You can use msys, just download 1.08 or later (well, that's what I 51 tested) at: 52 http://prdownloads.sourceforge.net/mingw/MSYS-1.0.8.exe 53 54 4) Add the mingw32 binary directory to your path 55 56 **** ALTERNATIVELY ***** 57 58 Using msys, just click on the msys icon on your desktop to launch 59 the sh command line window. Note that the python executable won't 60 do screen output correctly from this window, but it does work. 61 62 5) Build the libpython22.a import library using these steps: 63 64 a) Download the Py-mingw32 tools: 65 66 http://starship.python.net/crew/kernr/mingw32/Py-mingw32-tools.zip 67 68 b) extract them to C:\Python22\libs 69 70 c) edit lib2def.py and replace python15->python22, Python15->Python22 71 72 d) execute these commands: 73 74 C:\Python22\libs> lib2def.py python22.lib > python22.def 75 C:\Python22\libs> dlltool --dllname python22.dll --def python22.def --output-lib libpython22.a 76 77 Reference: 78 79 http://starship.python.net/pipermail/mmtk/2002/000398.html 80 81 6) Check the python library and include paths in the neotonic/rules.mk 82 83 You should see: 84 PYTHON_INC = -I/c/python22/include 85 PYTHON_LIB = -L/c/python22/libs -lpython22 86 87 These should have been found automatically by the configure script. 88 89 7) Then type "make" in the neotonic\python directory... 90 91 Ignore all the warnings aboue HAVE_ defines being re-defined. This 92 are just collisions between the clearsilver config file and the python 93 config file. 94