473,500 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Building Python 2.4 on machines that do not support dynamic loading

I have been trying to build python on Cray X1. As far as I can
tell it does not support dynamic loading. So the question is:

How to build 2.4 without dynamic loading?

That is: can I build 2.4 where all the extensions are archived in
libpython2.4.a as a static library?

Building on the Cray X1 is slow, so I have been trying to also
build it under Linux without dynamic loading since it
configures/builds so much faster.

I edited the configure script so that it doesn't know that dlopen
works. The file "pyconfig.h" undefines HAVE_DYNAMIC_LOADING
HAVE_LIBDL and so on. Under linux it still builds .so files
but it gives the following message for all .so files:

*** WARNING: importing extension "dl" failed with
exceptions.AttributeError: 'module' object has no
attribute 'load_dynamic'

It seems like it is possible to build python without dynamic
loading as someone build python 2.3 on the X1. For various
reason I need 2.4, it just not clear what the trick is.

I have done some google group and web searching without success
so I'm asking all you experts to shine some light in this dark
corner.
Dec 4 '05 #1
1 1787
Robert McLay wrote:
I have been trying to build python on Cray X1. As far as I can
tell it does not support dynamic loading. So the question is:

How to build 2.4 without dynamic loading?
Make sure HAVE_DYNAMIC_LOADING isn't defined; configure should detect
this automatically.
That is: can I build 2.4 where all the extensions are archived in
libpython2.4.a as a static library?


Certainly: Edit Modules/Setup to your needs.

Regards,
Martin
Dec 4 '05 #2

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

Similar topics

30
3379
by: Christian Seberino | last post by:
How does Ruby compare to Python?? How good is DESIGN of Ruby compared to Python? Python's design is godly. I'm wondering if Ruby's is godly too. I've heard it has solid OOP design but then...
26
2187
by: Mark Hahn | last post by:
This is an announcement of the beginning of development of a new Python-like language called PyCs (pronounced "pie-cees"). Like IronPython, PyCs will be Python on .Net but it will have more...
30
2740
by: Stuart Turner | last post by:
Hi Everyone, I'm working hard trying to get Python 'accepted' in the organisation I work for. I'm making some good in-roads. One chap sent me the text below on his views of Python. I wondered...
0
1755
by: Samuel M. Smith | last post by:
I can build python 2.4.2 from source on the embedded linux box when I nfs mount and boot a full debian distribution. The embedded box also has stripped down linux distribution in onboard flash....
8
2410
by: Brennus | last post by:
I have a dll/so which embeds python. I can verify it works by compiling it as an executable and adding an appropriate main. I tried to write unit tests for this library with ctypes and a simple...
1
1684
by: J. Jeffrey Close | last post by:
Hi all, I have been trying for some time to build Python 2.4.x from source on OS X 10.4.6. I've found *numerous* postings on various mailing lists and web pages documenting the apparently...
28
2592
by: H J van Rooyen | last post by:
Hi, I want to write a small system that is transaction based. I want to split the GUI front end data entry away from the file handling and record keeping. Now it seems almost trivially easy...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.