Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
examples/ | 03-May-2024 | - | 4,730 | 3,321 | ||
Makefile | D | 03-May-2024 | 1.1 KiB | 53 | 38 | |
README.txt | D | 03-May-2024 | 2.8 KiB | 94 | 57 | |
neo_cgi.c | D | 03-May-2024 | 21.8 KiB | 952 | 785 | |
neo_cgi.def | D | 03-May-2024 | 48 | 5 | 4 | |
neo_cs.c | D | 03-May-2024 | 4 KiB | 188 | 143 | |
neo_util.c | D | 03-May-2024 | 15.2 KiB | 709 | 580 | |
p_neo_util.h | D | 03-May-2024 | 2.5 KiB | 92 | 56 | |
setup.py | D | 03-May-2024 | 3.8 KiB | 132 | 101 | |
static.py | D | 03-May-2024 | 1.1 KiB | 51 | 35 | |
upload.py | D | 03-May-2024 | 835 | 42 | 28 |
README.txt
1------------------------ 2Python Clearsilver Module 3By Brandon Long 4 5Windows port by David Jeske 6------------------------ 7 8This is the python clearsilver module. You can see the online 9documentation for the Python API here: 10 11 http://www.clearsilver.net/docs/python/ 12 13COMPILING on UNIX 14 15Compiling from source on Linux (UNIX) should be pretty 16straightforward. Simply make sure that the Makefile and top level 17rules.mk point to your Python installation of choice. Comments or 18questions to blong@fiction.net 19 20WINDOWS BINARY 21 22If you are using Python2.2, we highly recommend you download the 23pre-built binary. You can download a windows binary of the module from 24the clearsilver download page here: 25 26 http://www.clearsilver.net/downloads/ 27 28COMPILING on Windows 29 30If you must compile on windows, here is the set of steps you need to 31follow for Python22. Comments or questions to jeske@chat.net. 32 331) Download and Install Python2.2 from: 34 35 http://www.python.org/ftp/python/2.2.1/Python-2.2.1.exe 36 372) 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 423) 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 544) 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 625) 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 816) 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 897) 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