Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev
Relocating Python
 

Index | Next | Previous | View Flat


razvan.a.lupusoru at intel

Jul 29, 2008, 11:56 AM


Views: 204
Permalink
Relocating Python

Hello,



I am trying to get Python 2.5.2 working for an IA32 system. The
compilation is done on an Ubuntu 8.04.1 dev system. I am using a custom
gcc and ld specific to the IA32 system.



This is my makefile:

##############################

BUILD_DEST = /i686-custom-kernel

CC = $(BUILD_DEST)/bin/i686-linux-gcc

CPP = $(CC) -E

CXX = $(BUILD_DEST)/bin/i686-linux-g++

LD = $(BUILD_DEST)/bin/i686-linux-ld

PYTHONINSTALLPATH = $(BUILD_DEST)/usr

Export



all:

tar xzfv Python-2.5.2.tgz

./Python-2.5.2/configure -prefix=${PYTHONINSTALLPATH}
-host=i686-linux -enable-shared

cd Python-2.5.2

make

make install

##############################



Everything compiles correctly. I then copy the contents of the
$BUILD_DEST and put them on the hard drive for my IA32 system. I
basically use the contents of $BUILD_DEST as the root directory on my
IA32 system. Python seems to run correctly when I run it, but when I do
things like "import pysqlite", it cannot find it. Is there anything
special I have to do to relocate my python (since on my IA32 system it
runs from /usr/bin/python but it originally gets created in
${BUILD_DEST}/usr/bin/python)?



Thank you,



Razvan A. Lupusoru

Subject User Time
Relocating Python razvan.a.lupusoru at intel Jul 29, 2008, 11:56 AM
    Re: Relocating Python casey at pandora Jul 29, 2008, 12:54 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.