Re: How to upgrade ClearSilver from 0.9.14 to 0.10.x ?

Brandon Long <[email protected]> Thu, 1 May 2008 13:07:59 -0700
Newsgroups gmane.text.clearsilver.general
Organization Fiction L Networks
Message-ID <20080501200759.GB16925@bl1>
Here's the README.txt file in the python directory on how to compile on
Windows.  I'm not in front of a Windows box at the moment, so I can't
test it for you:

COMPILING on Windows

If you must compile on windows, here is the set of steps you need to
follow for Python22. Comments or questions to [email protected].

1) Download and Install Python2.2 from:

   http://www.python.org/ftp/python/2.2.1/Python-2.2.1.exe

2) Download and Install Mingw32-2.0 and binutils from:

   http://prdownloads.sourceforge.net/mingw/MinGW-2.0.0-3.exe?download
   http://prdownloads.sourceforge.net/mingw/binutils-2.13-20020903-1.tar.gz?download

3) Download and Install UNIX Tools and Make from:

   http://unxutils.sourceforge.net/UnxUtils.zip

   http://prdownloads.sourceforge.net/mingw/make-3.79.1-20010722.tar.gz

**** ALTERNATIVELY *****

    You can use msys, just download 1.08 or later (well, that's what I
    tested) at:
    http://prdownloads.sourceforge.net/mingw/MSYS-1.0.8.exe

4) Add the mingw32 binary directory to your path

**** ALTERNATIVELY *****

    Using msys, just click on the msys icon on your desktop to launch
    the sh command line window.  Note that the python executable won't
    do screen output correctly from this window, but it does work.

5) Build the libpython22.a import library using these steps:

   a) Download the Py-mingw32 tools:

     http://starship.python.net/crew/kernr/mingw32/Py-mingw32-tools.zip

   b) extract them to C:\Python22\libs

   c) edit lib2def.py and replace python15->python22, Python15->Python22

   d) execute these commands:

       C:\Python22\libs> lib2def.py python22.lib > python22.def
       C:\Python22\libs> dlltool --dllname python22.dll --def python22.def --output-lib libpython22.a

   Reference:

   http://starship.python.net/pipermail/mmtk/2002/000398.html

6) Check the python library and include paths in the neotonic/rules.mk

  You should see:
    PYTHON_INC = -I/c/python22/include
    PYTHON_LIB = -L/c/python22/libs -lpython22

  These should have been found automatically by the configure script.

7) Then type "make" in the neotonic\python directory...

  Ignore all the warnings aboue HAVE_ defines being re-defined.  This
  are just collisions between the clearsilver config file and the python
  config file.

I'm pretty sure these are at least partially out of date, but we'd be happy to
have more up-to-date information.

Brandon

On 05/01/08 baison_hever uttered the following other thing:
> Hello,
> 
> I'm using the Trac tool, and I'm having a problem that the solution
> given was to upgrade the ClearSilver from 0.9.14 to 0.10.x (to be more
> especific 0.10.2).
> 
> 
> I'm under Windows OS, with Python 2.4.
> 
> 
> Can anyone give me the steps to do that?
> 
> 
> Thanks.
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 
-- 
  "Life is routine punctuated by orgies." -- Aldous Huxley
                                           http://www.fiction.net/blong/