Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21803
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dcday137@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'script,': 0.07; 'python': 0.08; 'distutils': 0.09; 'setup.py': 0.09; 'subject:distutils': 0.09; 'subject:python': 0.10; 'def': 0.13; 'library': 0.13; 'thanks!': 0.14; 'pil': 0.15; '.so,': 0.16; 'amd64': 0.16; 'earlier,': 0.16; 'grep': 0.16; 'extension': 0.17; '3.2': 0.18; 'subject:Question': 0.19; 'is?': 0.21; 'noticed': 0.26; 'all,': 0.27; 'import': 0.27; 'tried': 0.27; 'posted': 0.29; 'script.': 0.29; "skip:' 10": 0.29; 'problem': 0.29; 'line:': 0.30; 'received:209.85.210.46': 0.30; 'received:mail- pz0-f46.google.com': 0.30; 'message-id:@gmail.com': 0.31; 'shared': 0.31; 'source': 0.32; 'anyone': 0.32; 'header:User- Agent:1': 0.33; 'causing': 0.34; 'to:addr:python-list': 0.35; 'question': 0.36; 'example,': 0.37; 'run': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'skip:" 10': 0.37; 'difference': 0.38; 'received:209.85': 0.38; 'received:192': 0.38; 'should': 0.38; 'open': 0.38; 'received:192.168.1': 0.39; 'received:209': 0.39; 'hit': 0.40; 'being': 0.40; 'to:addr:python.org': 0.40; 'session,': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=oPTw37joU1QwvCapUycgObqmTGdC+MBkwSQ1yIifxUo=; b=kGBwE9KD5akgymxfZAsr+ZhFs02E7k8sBJdlW3PdIJDR7qZhiFhE4vfFVSScUjnG18 G1LK8OWePD2omI33QD+y/NF5KRpBuizThZvKTyKvSkQwH578qPRcLseyry2f/Zd9e9AL bAPhJt/8lz5REkIdhVw7MT4Lnnsv8Z8LsKGzn/5E/MSgs76xIYUJ4W1FYvUTTwYcSozG IRbdg4KK/9fPAq1ANv83kgL8FYYo9uVIRN1IcoiMfPPtVIxJpTYOV1hbKlG9dVrLGIAX ajeeD+bK6A1Pc8xiIybyMLViXIrtfL6hxoWBqA5TzPh+Iy2TxpcEGINZwzHiFLm4EtLd icLw== |
| Date | Sat, 17 Mar 2012 00:05:29 -0600 |
| From | Collin Day <dcday137@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120311 Thunderbird/10.0.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Question about python 3.2 distutils |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| 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.753.1331964335.3037.python-list@python.org> (permalink) |
| Lines | 41 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1331964335 news.xs4all.nl 6881 [2001:888:2000:d::a6]:41889 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:21803 |
Show key headers only | View raw
Hi all,
I have a question about python 3.2 distutils on a Gentoo amd64 system.
When I open an ipython session and import distutils.unixcompiler and
then check the shared library extension with
UnixCCompiler.shared)lib_extension, it returns '.so', as I would
expect. When I run a setup.py in an unofficial PIL source that should
work with python 3.2 and step into it, I hit the line:
find_library_file(self, "tcl" + version):
feature.tcl = "tcl"+TCL_VERSION
self is: <__main__.pil_build_ext object at 0xf44510>
find_library_file is:
def find_library_file(self, library):
return self.compiler.find_library_file(self.compiler.library_dirs,
library)
self.compiler is <distutils.unixccompiler.UnixCCompiler object at
0xfc5410>
library is: 'tcl8.5'
when I check the shared_lib_extension it returns '.cpython-32.so' - not
'.so'
This is causing a problem because, for example, I have libtcl8.5.so, but
it is looking for libtcl8.5.cpython-32.so.
Where is this shared lib extension being determined? After all, in an
interactive session, it is just looking for .so, but in the script, it
is looking for .cpython-32.so. I tried grep -R cpython-32 * in the top
level directory of ther PIL source I am using, thinking it may be
ovridden or set somewhere, but it turns up empty. Can anyone tell me
what the difference is? I posted earlier, but I just noticed this
difference between interactive session and script.
Thanks!
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Question about python 3.2 distutils Collin Day <dcday137@gmail.com> - 2012-03-17 00:05 -0600
csiph-web