Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30855

Problems building Python from hg trunk on Open SUSE

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'output': 0.04; 'subject:Python': 0.05; 'installed.': 0.05; 'subject:Open': 0.05; 'sys': 0.05; 'things.': 0.05; "'',": 0.07; '64-bit': 0.07; 'purpose.': 0.07; 'python': 0.09; 'software;': 0.09; 'solaris,': 0.09; 'subject:trunk': 0.09; 'thu': 0.09; 'x86_64': 0.09; 'fitness': 0.13; '(note': 0.16; '--help"': 0.16; '--version': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'googling': 0.16; 'guessing': 0.16; 'install"': 0.16; 'install".': 0.16; 'oct': 0.16; 'path:': 0.16; 'received:mail- wi0-f178.google.com': 0.16; 'relates': 0.16; 'skip:/ 50': 0.16; 'skip:~ 20': 0.16; 'subject:Problems': 0.16; 'sys.path': 0.16; 'uname': 0.16; 'utc': 0.16; 'warranty;': 0.16; 'skip': 0.17; 'foundation,': 0.18; '>>>': 0.18; 'sender:addr:gmail.com': 0.18; 'packaging': 0.20; 'written': 0.20; 'bit': 0.21; 'import': 0.21; 'default,': 0.22; 'fine,': 0.22; 'gcc': 0.22; 'libraries': 0.22; "skip:' 40": 0.22; 'dependent': 0.23; 'this:': 0.23; "haven't": 0.23; 'installed': 0.23; '(this': 0.24; 'thus': 0.24; 'linux': 0.24; 'looks': 0.26; 'setting': 0.26; 'appreciated.': 0.26; 'ago': 0.27; 'pages,': 0.27; 'installing': 0.27; 'message- id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'lines': 0.28; 'received:209.85.212': 0.28; 'skip:( 20': 0.28; "skip:' 50": 0.29; 'objects': 0.29; 'source': 0.29; "i'm": 0.29; 'install': 0.29; 'related': 0.30; 'skip:- 30': 0.31; 'computer.': 0.32; 'could': 0.32; 'word.': 0.33; 'to:addr:python-list': 0.33; '(c)': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'architecture': 0.34; 'conditions.': 0.35; 'nov': 0.35; 'open': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'except': 0.36; "didn't": 0.36; 'anything': 0.36; 'turn': 0.36; 'bad': 0.37; 'resolve': 0.37; 'why': 0.37; 'skip:3 10': 0.37; 'usual': 0.37; 'received:209': 0.37; 'copying': 0.38; 'files': 0.38; 'some': 0.38; 'advice': 0.39; 'instead': 0.39; 'system.': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'containing': 0.61; 'free': 0.61; '(that': 0.62; 'our': 0.65; 'decided': 0.65; './configure': 0.84; '12.1': 0.84; 'awhile': 0.84; 'messed': 0.84; 'whirl': 0.84; 'directories,': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=DX6q+xl95OKGxnohGTMszjdjz9Dnygj8VQ6bhB1cSYU=; b=0UqTeRsN917zXoWpVchiMaFWI+ptwT0GPVCvMrPbMQQQg6khRjDV1aqYXU7YnCljr5 4QgN211R20GU4Z+CydBBoPvKovQXpPioj0wn9RAOpunZlDs+8PSDmI6kZsPih4Ffjn5c +8jk3nMnQ5/KVIjzLvRZ61wvNjgdXEVmPY8+SxlqZbdsxSyPc10OrRpThS9S4VyqFTju kDPLYIbCghm66a/zIMGBFSfhyWKL+aOVnQogVymH0t+rDuzKaTysNy/11j7x01w7sEKt vZ7fZMw39AQTRwzAjfoZXY33lpJySfasYlGEfOTKmwAIUD4G680jxVrxHj3J1wajoDa7 FSYw==
MIME-Version 1.0
Sender skip.montanaro@gmail.com
Date Fri, 5 Oct 2012 19:24:58 -0500
X-Google-Sender-Auth KEkJArbAen5Bl5OvODYQ_RjghI0
Subject Problems building Python from hg trunk on Open SUSE
From Skip Montanaro <skip@pobox.com>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1885.1349483106.27098.python-list@python.org> (permalink)
Lines 67
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1349483106 news.xs4all.nl 6876 [2001:888:2000:d::a6]:44822
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:30855

Show key headers only | View raw


I haven't messed around with Python 3 recently, so decided to give it
a whirl again.  I cloned the trunk (cpython) and set about it.  This
is on an OpenSUSE 12.1 system.  I configured like so:

  ./configure --prefix=/home/skipm/.linux-local

and ran the usual "make ; make install".

I'm a bit perplexed about how it is installed.  Instead of installing
shared objects in

  /home/skipm/.linux-local/lib/python3.4/lib-dynload

they were installed in

/home/skipm/.linux-local/lib64/python3.4/lib-dynload

(note the "lib64" vs. "lib").  This would be fine, except sys.path
doesn't include the "lib64" version of this path:

% PYTHONPATH= PYTHONSTARTUP= ~/.linux-local/bin/python3.4 -S
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 3.4.0a0 (default:26200f535296, Oct  3 2012, 12:48:07)
[GCC 4.4.6 [TWW]] on linux
>>> import sys
>>> sys.path
['', '', '/home/skipm/.linux-local/lib/python34.zip',
'/home/skipm/.linux-local/lib/python3.4/',
'/home/skipm/.linux-local/lib/python3.4/plat-linux',
'/home/skipm/.linux-local/lib/lib-dynload']

I see the message about setting PYTHONHOME.  (That happens to be bad
advice as sys.prefix and sys.exec_prefix are identical in this case.)
What I don't understand is why directories containing "lib64" are not
in sys.path by default, given that that's where "make install" put
things.

GCC is as delivered by The Written Word.  (This is a work computer.
The powers that be settled on TWW awhile ago for packaging all open
source software we use on Linux and Solaris, thus removing a headache
from our support staff.)  It is:

% gcc --version
gcc (GCC) 4.4.6 [TWW]
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The architecture looks like this:

% uname -a
Linux udesktop264 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45
UTC 2011 (187dde0) x86_64 x86_64 x86_64 GNU/Linux

I don't see anything in the output of "./configure --help" which
relates to 64-bit install directories, though I do see some lines in
config.log about guessing the architecture.  Some cursory googling
didn't turn up any promising web pages, and I didn't find anything in
the various documentation files in the repo related to building
Python.

Any suggestions about how to resolve this would be appreciated.

Thx,

Skip

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Problems building Python from hg trunk on Open SUSE Skip Montanaro <skip@pobox.com> - 2012-10-05 19:24 -0500
  Re: Problems building Python from hg trunk on Open SUSE 88888 Dihedral <dihedral88888@googlemail.com> - 2012-10-07 10:01 -0700
  Re: Problems building Python from hg trunk on Open SUSE 88888 Dihedral <dihedral88888@googlemail.com> - 2012-10-07 10:01 -0700

csiph-web