Hi there,
2 questions regarding build/installation issues:
1. In the python 2.3.3 setup.py script, the detect_modules method of
class PyBuildExt contains the following code:
253 if os.path.normpat h(sys.prefix) != '/usr':
254 add_dir_to_list (self.compiler. library_dirs,
255 sysconfig.get_c onfig_var("LIBD IR"))
256 add_dir_to_list (self.compiler. include_dirs,
257 sysconfig.get_c onfig_var("INCL UDEDIR"))
This basically just adds the PREFIX/lib and PREFIX/include to
self.compiler.l ibrary_dirs
and self.include_di rs, PREFIX being what I gave to configure as command
line argument, e.g.:
../configure --prefix=/opt/tools --with-cxx=gcc
I understand the --prefix=PREFIX sets the installation _target_ directory.
Does it make sense to have these paths in include_dirs/library_dirs? Why
would I want this?
In fact, as it turned out that I had some bogus header files in the PREFIX
directory, an
extension module would not compile.
2. As a lot of things do not live in the "standard" places in our
environment, there seem to be several
places where I have to change setup.py manually. E.g. adding runtime
library dirs for curses, gdbm etc.
Is there another way to achieve correct build, in terms of telling my
non-standard paths to configure
in the first place? Just to spare me from changing setup.py...
Any comments are appreciated.
Best regards
Holger
_______________ _______________ ___
Holger Joukl
Landesbank Baden-Württemberg
1651 Financial Markets Technologies
fon +49 (711) 124 - 7078
fax +49 (711) 124 - 3759
_______________ _______________ ___
Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.
The contents of this e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail. Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version. 1 2870
"Holger Joukl" <Ho**********@L BBW.de> writes: Hi there, 2 questions regarding build/installation issues:
1. In the python 2.3.3 setup.py script, the detect_modules method of class PyBuildExt contains the following code:
253 if os.path.normpat h(sys.prefix) != '/usr': 254 add_dir_to_list (self.compiler. library_dirs, 255 sysconfig.get_c onfig_var("LIBD IR")) 256 add_dir_to_list (self.compiler. include_dirs, 257 sysconfig.get_c onfig_var("INCL UDEDIR"))
This basically just adds the PREFIX/lib and PREFIX/include to self.compiler.l ibrary_dirs and self.include_di rs, PREFIX being what I gave to configure as command line argument, e.g.: ./configure --prefix=/opt/tools --with-cxx=gcc
I understand the --prefix=PREFIX sets the installation _target_ directory. Does it make sense to have these paths in include_dirs/library_dirs? Why would I want this?
Well, to work completely out of the box setup.py would need to be
telepathic, omniscient and be able to see into the future. We're
working on that <wink>, but not there yet.
So I wouldn't regard having to hand-hack setup.py as being in
particularly bad taste.
In fact, as it turned out that I had some bogus header files in the PREFIX directory, an extension module would not compile.
Well, might I suggest not installing broken headers on your system? I
mean, I can think of real reasons for not wanting $(prefix) on the
search path, but not this one.
2. As a lot of things do not live in the "standard" places in our environment,
What is your environment, out of curiosity?
there seem to be several places where I have to change setup.py manually. E.g. adding runtime library dirs for curses, gdbm etc. Is there another way to achieve correct build, in terms of telling my non-standard paths to configure in the first place?
Er, no, or at least not in general. Editing Modules/Setup is another
option...
Just to spare me from changing setup.py...
.... as is submitting patches to SF that make setup.py look in these
places, if they are in fact "standard" for your environment but not
for, say, Red Hat Linux.
Cheers,
mwh
--
Never meddle in the affairs of NT. It is slow to boot and quick to
crash. -- Stephen Harris
-- http://home.xnet.com/~raven/Sysadmin/ASR.Quotes.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Zunbeltz Izaola |
last post by:
Hi,
I've build and installed python 2.2 and python2.3 in a linux box.
Now i want to install some packages (Numeric, wxPython and
scipy). I've install Numeric and wxPython for python2.3 without
problem (python2.3 setup.py install ... and so on). But when I try
python2.2 setup.py install
I get the following error (for wxpython)
|
by: Tim Bradshaw |
last post by:
I'd like to be able to install python with stow, and then to install
various modules which use distutils, also with stow. This currently
pretty much won't work, because Python chases symlinks to set
sys.prefix, which means that the site path gets set to the `true'
location rather than the one with all the links. This means that
Python won't find modules you install with stow, unless you glue the
linky site directory into sys.path. Doing...
|
by: Russell E. Owen |
last post by:
I'm trying to build Python 2.3.4 from source on a RedHat Enterprise
machine for installation in a net-wide accessible directory /net/python.
I tried all of the following variants of ./configure (the first was
required for Python 2.3.3 on RedHat 9):
../configure --prefix=/net/python --enable-unicode=ucs4
../configure --prefix=/net/python
../configure --prefix=/net/python --enable-unicode=ucs2
All of these result in the ominous message...
|
by: Layne Meier |
last post by:
I'm having a bit of a problem trying to install Python on a Solaris 10
system. I didn't have this kind of problem when trying to install it
on Solaris 8.
Has anyone else experienced this problem? I've tried adding CC=gcc
into the configure script, and have also tried running ./configure
--with-gcc with no luck. I appears that this is dead set to using c++
which isn't working.
MAILBOT:root:8:Python-2.4.2:# ./configure
|
by: rwr |
last post by:
As a newbie I am having problems/errors configuring Python after
unpacking the Python archive:
# ./configure
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for --with-cxx=<compiler>... no
checking for c++... no
checking for g++... no
| |
by: Ben Sizer |
last post by:
I've installed several different versions of Python across several
different versions of MS Windows, and not a single time was the Python
directory or the Scripts subdirectory added to the PATH environment
variable. Every time, I've had to go through and add this by hand, to
have something resembling a usable Python installation. No such
problems on Linux, whether it be Mandrake/Mandriva, Fedora Core, or
Kubuntu. So why is the Windows...
|
by: Justin Johnson |
last post by:
Hello,
I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler
(VisualAge C++ Professional / C for AIX Compiler, Version 6). I run
configure and make, but makes fails with undefined symbols. See the
output from configure and make below.
svnadm /svn/build/python-2.5.0>env CC=cc CXX=xlC ./configure
--prefix=$base_dir \
checking MACHDEP... aix5
|
by: Mathias Waack |
last post by:
After switching my development environment to 64 bit I've got a problem with
a python extension for a 32 bit application. Compiling the app under Linux
results in the following error:
g++ -m32 -Wall -g -O2 -I. -Idb -DPYTHON=25 -o mappy.o -c mappy.cpp
In file included from /usr/include/python2.5/Python.h:57,
from mappy.cpp:29:
/usr/include/python2.5/pyport.h:732:2: error: #error "LONG_BIT definition
appears wrong for platform (bad...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |