Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45660
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <maciej.blizinski@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; 'else:': 0.03; 'package,': 0.03; 'url:pipermail': 0.05; 'subject:Python': 0.06; '64-bit': 0.07; '32-bit': 0.09; 'intrusive': 0.09; 'runtime': 0.09; 'skip:$ 20': 0.09; 'skip:$ 40': 0.09; 'worked,': 0.09; 'python': 0.11; '[1].': 0.16; 'ideally,': 0.16; 'python-list,': 0.16; 'runtime.': 0.16; 'specifying': 0.16; 'subject:bit': 0.16; 'url:packages': 0.16; 'files.': 0.16; 'sender:addr:gmail.com': 0.17; 'code,': 0.22; 'creating': 0.23; 'accommodate': 0.24; 'header': 0.24; "i've": 0.25; 'source': 0.25; 'values': 0.27; 'specifically': 0.29; '[1]': 0.29; '[2]': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'fine,': 0.31; 'file': 0.32; "we're": 0.32; 'quite': 0.32; 'url:python': 0.33; 'running': 0.33; 'skip:_ 10': 0.34; "i'd": 0.34; 'problem': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'described': 0.36; 'done': 0.36; 'similar': 0.36; 'url:org': 0.36; 'handle': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'most': 0.60; 'from:charset:utf-8': 0.61; 'term': 0.63; 'kind': 0.63; 'more': 0.64; 'different': 0.65; 'reads': 0.68; 'skip:$ 10': 0.81; 'installer': 0.84; 'upstream': 0.84; 'findings': 0.91; 'before?': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=HHb8UD5r8olTN1xk1fNhTeVcJbI9t5V0gtYiMdbUUfI=; b=DsRRStK4NBSnvpjbPxoSfECZ1NHDTByVOTD1mbA90Qy1NUkp0IsJaM/1atF3QjN2rh SoUY3x/sK95d/yJAWoYCByBsz3+kl3fhVoZXST0FVdlSU5dRainh/u3AMq4mxIBddJTj uYwLaFv1Hum2JBd19ESPbQQyxwOgePXLb+gX2OZOKVzEaSdWvFy+KigB1RztWf79WKja 1otNEmPkUapM0rhWiSUOA8R3eE3xvlL73VQieK9wN0BVSNTU/wQFfyKPXIasl9xoFB8s QfciG2eTYdDY3shtXQ/Gf1f1yO3Tm07GHQixu5io+GqZ+wHUigl1s7gorFfAwfuPRMVk d1wA== |
| X-Received | by 10.50.114.166 with SMTP id jh6mr7864959igb.78.1369129948503; Tue, 21 May 2013 02:52:28 -0700 (PDT) |
| MIME-Version | 1.0 |
| Sender | maciej.blizinski@gmail.com |
| From | Maciej (Matchek) Bliziński <maciej@opencsw.org> |
| Date | Tue, 21 May 2013 10:51:48 +0100 |
| X-Google-Sender-Auth | zlZHVJDkI19wJAz1i-1i4y-6Gh4 |
| Subject | 64-bit Python for Solaris |
| 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.1918.1369129956.3114.python-list@python.org> (permalink) |
| Lines | 44 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1369129956 news.xs4all.nl 15929 [2001:888:2000:d::a6]:48367 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:45660 |
Show key headers only | View raw
Hello python-list,
I'm looking into creating a 32/64-bit Python (2.x and/or 3.x) package
for Solaris. The specificity of that package is that I need to include
both 32-bit and 64-bit binaries in it. The exact way in which the
32/64 support is done is described at [1].
There currently is a Python package that I maintain, which is 32-bit only[2].
I have made an attempt to build a 64-bit package, and my findings are
that the ${prefix}/lib/pythonX.Y/_sysconfigdata.py file contains
system-specific information. Note that it's not ${libdir}/pythonX.Y -
that would have worked, because I'm specifying different ${libdir}
directories when running the 32-bit and 64-bit builds. The Python
installer specifically uses ${prefix}/lib/pythonX.Y. For the most part
is fine, because most of files in there are not architecture-specific,
and it would be quite good to share them among the 32-bit and 64-bit
binaries at runtime. The problem is that some files differ. I've
described it some more at [3].
Ideally, I'd make _sysconfigdata.py return/set different values
depending on the Python runtime that reads it. Something like:
if we're 64-bit:
set values for the 64-bit platform
else:
set values for the 32-bit platform
It's a similar approach to how we currently handle C header files. See
the 'Development packages' section in [1] for more information.
The problem is that it would involve somewhat intrusive patching of
the Python source code, and in long term that means maintainability
issues.
Has this issue been seen before? Is there a better solution? Is there
something that can be done upstream to accommodate this kind of
packaging?
Maciej
[1] http://www.opencsw.org/manual/for-maintainers/32-bit-and-64-bit.html
[2] http://www.opencsw.org/packages/python/
[3] http://lists.opencsw.org/pipermail/maintainers/2013-January/017583.html
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
64-bit Python for Solaris Maciej (Matchek) Bliziński <maciej@opencsw.org> - 2013-05-21 10:51 +0100
csiph-web