473,287 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Building sparc64 32/64-bit Python

Hi,

I'm trying to build a Sun Solaris Version of Python from the source so
that both, 32-bit and 64-bit libraries are present.

I can successfully build a 32-bit version in one directory and a 64-bit
version in another directory. What I'd like to do is to build a version
that has the 64-bit library in a sparcv9 directory but shares the other
Python libraries that are ELF-code independent.

Is this possible or do I really have to install two complete but
separate Pythons although most of the files are the same?

--
Stefan Bellon
Oct 22 '07 #1
3 1350
Stefan Bellon wrote:
Hi,

I'm trying to build a Sun Solaris Version of Python from the source so
that both, 32-bit and 64-bit libraries are present.

I can successfully build a 32-bit version in one directory and a 64-bit
version in another directory. What I'd like to do is to build a version
that has the 64-bit library in a sparcv9 directory but shares the other
Python libraries that are ELF-code independent.

Is this possible or do I really have to install two complete but
separate Pythons although most of the files are the same?
It should be possible to create a independent site-packages directory that
contains the python-library and then tinker with both installations setting
that directory as part of the python-path (look at *pth-files in the
site-packages directory to get an idea how that works)

Another question is if that's advisable. It certainly won't become part of
the standard installation scripts, and in the end you save how much - 8MB
or so?

Diez

Oct 22 '07 #2
On Mon, 22 Oct, Diez B. Roggisch wrote:
Stefan Bellon wrote:
I can successfully build a 32-bit version in one directory and a
64-bit version in another directory. What I'd like to do is to
build a version that has the 64-bit library in a sparcv9 directory
but shares the other Python libraries that are ELF-code independent.

Is this possible or do I really have to install two complete but
separate Pythons although most of the files are the same?

It should be possible to create a independent site-packages directory
that contains the python-library and then tinker with both
installations setting that directory as part of the python-path (look
at *pth-files in the site-packages directory to get an idea how that
works)
Well, I didn't want to to tinker with installation files. I hoped that
there was a way to configure it accordingly.
Another question is if that's advisable. It certainly won't become
part of the standard installation scripts, and in the end you save
how much - 8MB or so?
I thought it would be a "more correct" way of installing it. GCC (and
others) install their libraries in prefix/lib and prefix/lib/sparcv9 as
well without needing two separate installations, therefore I was
wondering whether the same can be achieved with Python.

But if this is not possible, then I'll just go for python and python64
as separated installations.

--
Stefan Bellon
Oct 22 '07 #3
Is this possible or do I really have to install two complete but
separate Pythons although most of the files are the same?
That configuration is not explicitly supported in the build process.

Notice that the "Python libraries" are not entirely platform
independent. On Sparc64, the byte code files may be different
from the byte code files on Sparc, if the source code contains
integer literals above 2**31. Such literals would be marshaled
as TYPE_LONG (l) on Sparc32, but as TYPE_INT64 (I) on Sparc64.

Regards,
Martin
Oct 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Krusty276 | last post by:
I'm getting this error when trying to compile javadoc in ant from my buildxml: Any ideas? C:\umg\java\web\dbtest\WEB-INF\src\build.xml:64: Javadoc failed: java.io.IOException: CreateProcess:...
0
by: muergano terrible | last post by:
Hello, I have been trying to compile MySQL 4.0.15a on a Sparc Solaris 9 machine without any success. I do not know if the reason of my failure is the fact that I want to include SSL support on...
1
by: Hugo | last post by:
I have a dual boot machine, runs Win XP pro and Win XP Pro 64, XP boots from C and XP 64 boots from D. They both have VS 2005 Beta 2 installed. I have a webapp developed in Win XP (32) which...
56
by: Dave Vandervies | last post by:
I just fixed a bug that some of the correctness pedants around here may find useful as ammunition. The problem was that some code would, very occasionally, die with a segmentation violation...
0
by: Hugo | last post by:
I have a dual boot machine, runs Win XP pro and Win XP Pro 64, Win XP boots from C and Win XP 64 boot from D. They both have VS 2005 Beta 2 installed. I have a webapp developed in Win XP (32)...
1
by: mel_apiso | last post by:
Hi, we have an AIX 5.3 OS, and we purchased DB2 UDB version 8 Workgroup Edition. We want to install 64 bits version, but the source CD's that we have say: WORKGROUP SERVER EDITION Version...
13
by: Mary Lei | last post by:
Does anyone know the link to obtain the tarball for db2 8.1 for solaris running on AMD 64 bit ? This is the entire db2 installation on a new system that does not have db2. Thanks.
10
by: krunalb | last post by:
Hi, I am trying to shift unsigned long long value by 64 bits and this is what i get #include <stdio.h> int main() { unsigned short shiftby= 64;
1
by: =?Utf-8?B?UGF1bCBQaGlsbGlwcw==?= | last post by:
I have read many things about this but I haven't got a clear vision on what to do if anything about this. I have a system that tries to find holes in my web site. One of the things it has...
8
by: Brett | last post by:
I wrote an ASP.NET application that queries a SQL Server database (on a different box from the web server) and displays the result in a GridView. The datasource for the GridView is a SQLDataSource....
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.