• Home
Name Date Size #Lines LOC

..--

examples/03-May-2024-4,7303,321

MakefileD03-May-20241.1 KiB5338

README.txtD03-May-20242.8 KiB9457

neo_cgi.cD03-May-202421.8 KiB952785

neo_cgi.defD03-May-202448 54

neo_cs.cD03-May-20244 KiB188143

neo_util.cD03-May-202415.2 KiB709580

p_neo_util.hD03-May-20242.5 KiB9256

setup.pyD03-May-20243.8 KiB132101

static.pyD03-May-20241.1 KiB5135

upload.pyD03-May-2024835 4228

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