LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to build pygtk with non system default python? (https://www.linuxquestions.org/questions/linux-software-2/how-to-build-pygtk-with-non-system-default-python-874883/)

Dstruct0 04-13-2011 07:26 PM

How to build pygtk with non system default python?
 
I'm on Debian Lenny. I've built and installed python-3.2 in /opt/python-3.2. Then i want to build and install pygtk, pycairo with /opt/python-3.2 and install them in that folder and not to use system default python (which is python-2.6) for their build process.

How do I tell pygtk and pycairo 's configure and makefile script to use /opt/python-3.2 's interpreter, include file and library for their build process(and not the system default python)?

I tried doing ./configure --help in pygtk folder but there was no option for specific non-system default python's folder location. Anyone has any ideas?

Dstruct0 04-13-2011 08:18 PM

If I only

Code:

export PATH=/opt/python-3.2/bin:$PATH
before running pygtk and pycairo's configure script will that be enough?

knudfl 04-14-2011 02:33 AM

Python 3 is a new different Python. I guess that the pygtk and pycairo
you can get now are for Python 2.

But anyway this works for setting a 'python' : grep -n PYTHON configure
to find where in 'configure' PYTHON is defined, and then edit PYTHON = " "
to : PYTHON = /opt/python-3.2/bin/python


Suggest : Read about Python 3, and find what has to be changed to
make it possible porting Python 2 applications to "3".
..

Dstruct0 04-14-2011 03:15 PM

knudfl said:
Quote:

Python 3 is a new different Python. I guess that the pygtk and pycairo
you can get now are for Python 2.

But anyway this works for setting a 'python' : grep -n PYTHON configure
to find where in 'configure' PYTHON is defined, and then edit PYTHON = " "
to : PYTHON = /opt/python-3.2/bin/python


Suggest : Read about Python 3, and find what has to be changed to
make it possible porting Python 2 applications to "3".
..
Thank you for your help. I'll look into it. Also I'll check what you said about porting python 2 app to python 3.


All times are GMT -5. The time now is 12:11 PM.