LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-13-2011, 08:26 PM   #1
Dstruct0
Member
 
Registered: Jun 2005
Distribution: Debian Etch, Lenny, Squeeze
Posts: 37

Rep: Reputation: 0
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?
 
Old 04-13-2011, 09:18 PM   #2
Dstruct0
Member
 
Registered: Jun 2005
Distribution: Debian Etch, Lenny, Squeeze
Posts: 37

Original Poster
Rep: Reputation: 0
If I only

Code:
export PATH=/opt/python-3.2/bin:$PATH
before running pygtk and pycairo's configure script will that be enough?
 
Old 04-14-2011, 03:33 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,126

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
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".
..
 
Old 04-14-2011, 04:15 PM   #4
Dstruct0
Member
 
Registered: Jun 2005
Distribution: Debian Etch, Lenny, Squeeze
Posts: 37

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pygtk with numeric python support em21701 Slackware 3 02-15-2011 06:54 AM
LXer: Graphical Python Programming With PyGTK LXer Syndicated Linux News 0 05-15-2009 01:20 AM
install latest versions of python, pygtk and glib kosmognov Linux - Software 2 05-12-2006 03:30 PM
pygtk-2.0 not found during install of gnome-python? morrolan Linux - Software 9 02-02-2004 02:13 AM
gDesklets, pyGTK, gnome-python ilhbutshm Slackware 4 12-11-2003 08:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration