swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] how to change the python that is used by swftools


From: Chris Pugh
Subject: Re: [Swftools-common] how to change the python that is used by swftools
Date: Wed, 17 Feb 2010 21:09:02 +0000

On 17 February 2010 17:10, Norman Khine <address@hidden> wrote:
> hi,
> i tried all this:
>
> for
>
> $ include_dirs=/opt/local/include/freetype2 my-python setup.py build
>
> http://paste.lisp.org/display/95112
>
> if i don't include the include_dirs=/opt/local/include/freetype2
>
> i get this:
>
> Creating config.h...
> running build
> running build_ext
> building 'SWF' extension
> gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
> -Wstrict-prototypes -I/Users/khinester/include -I/opt/local/include
> -Ilib/lame/ -Ilib/pdf/xpdf -Ilib/pdf
> -I/Users/khinester/include/python2.6 -c lib/modules/swffont.c -o
> build/temp.macosx-10.4-i386-2.6/lib/modules/swffont.o -fPIC
> -Wparentheses -Wimplicit -Wreturn-type -O3 -fomit-frame-pointer
> -Winline -Wno-unused -Wno-strict-prototypes -DHAVE_CONFIG_H
> -DSWFTOOLS_DATADIR="/usr/share/swftools/"
> lib/modules/swffont.c:50:31: error: freetype/freetype.h: No such file
> or directory
>
> i also tried:
>
> PYTHON=/Users/khinester/bin/python2.6
> export PYTHON
>
> but when i run ./configure
>
> i still get the system python, which does work and swftools builds and
> installs correctly, but i want to build the python extensions for this
> version of python and not the system's.
>
> thanks for any help.
>
> norman
>
> On Tue, Feb 16, 2010 at 10:22 PM, Ricardo Pedroso <address@hidden> wrote:
>> On Tue, Feb 16, 2010 at 8:05 PM, Norman Khine <address@hidden> wrote:
>>> hello,
>>> i tried:
>>>
>>> $ ./configure --prefix=$HOME PYTHON=$HOME/bin/python
>>>
>>> but this does not work.
>>>
>>> Is there a more direct way to choose which python to use?
>>>
>>
>> You can try the setup.py in the root directory of swftools source :
>> $HOME/bin/python setup.py build
>> $HOME/bin/python setup.py install
>>
>> or try export PATH with (assuming bash here):
>> $ export PATH=$HOME/bin:$PATH
>>
>> and probably configure will use your HOME python, I'm not sure
>>
>>> --
>>> %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
>>> chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )
>>>
>>
>> Nice signature, I like it :)
>>
>> Ricardo
>>
>
>
>
> --
> %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
> chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )
>
>
>

As long as all the relevant libraries are in place, how about just
temporarily changng the default python with a symbolic link? i.e.

     ls -s  /usr/bin/python?python2.5  /usr/bin/python

     ln -s /usr/bin/python python2.6.4  /usr/bin/python

Regards,


Chris.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]