473,386 Members | 1,720 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,386 software developers and data experts.

Building Python with non-traditional paths

Is there a clean way to build Python under a non-traditional path,
linking with other software that is under non-traditional paths, on
unix?

I maintain a build of Python [1] that is part of a self-contained
bundle of software [2] to run bcfg2 [3].

The major problem I am having is getting the build to link to the
openssl libraries, which are installed under /usr/local/lib/bcfg2/lib;
I tried (on GNU/Linux):

LDFLAGS="-L/usr/local/lib/bcfg2/lib
-Wl,-rpath,/usr/local/lib/bcfg2/lib"
CPPFLAGS="-I/usr/local/lib/bcfg2/include"

but that didn't work. The only thing I could do to get it to work
(sometimes) was to edit the setup.py file directly before the
../configure; make; make install like this:

cat setup.py \
| sed s:\/usr\/local\/:\/usr\/local\/lib\/bcfg2\/:g \
| sed
s:\/usr\/local\/lib\/bcfg2\/ssl\/include:\/usr\/local\/lib\/bcfg2\/include:g
\
| sed
s:\/usr\/contrib\/ssl\/include\/:\/usr\/local\/lib\/bcfg2\/include\/openssl\/:g
\
| sed
s:\/usr\/local\/lib\/bcfg2\/ssl\/lib:\/usr\/local\/lib\/bcfg2\/lib:g \
setup.py.bcfg2
mv setup.py.bcfg2 setup.py

However that is rather ugly, and modifies the source which I'd rather
not do. Is there a better/cleaner way?

[1] Complete build spec for Python for Bcfg2
http://www.bcfg2.org/browser/trunk/b...ython-2.4.3.ep

[2] Bcfg2 Encap Packages - Overview
http://www.bcfg2.org/wiki/EncapPackages

[3] Bcfg2 - Provides a declarative interface to system configuration
http://www.bcfg2.org

Sep 3 '06 #1
0 1314

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

Similar topics

0
by: Jeff Epler | last post by:
I tried building the documentation with "make pdf", and got a long list of warnings on "lib" (hbox, vbox, and reference warnings), ending with a TeX error: LaTeX Warning: Reference...
0
by: Steve | last post by:
Hi list, At work, we would shortly be starting a new project that would be almost entirely (90%) written in python. Our development as well as deployment would happen on linux (fedora and RHEL to...
0
by: Michael Ströder | last post by:
HI! I'm trying to build Python2.4 on a rather old Debian machine. I only have a shell account there. That's why I'm very limited in my actions. Building _socket fails (see below) although I...
9
by: Jenta | last post by:
A World Beyond Capitalism 2005, An Annual International Multiracial Alliance Building Peace Conference Is Accepting Proposals... ...and Online Registration is now available if you plan to table...
1
by: TPJ | last post by:
Hello, I have another, probably stupid, question. I'm working on some Python project, and I use some extensions written in C. I do all the development on my GNU/Linux box, so my setup.py script...
22
by: James Stroud | last post by:
Hello All, This is annoying. I am trying to build scipy right now but every .so file requires my adding "-lpython2.5 -lpthread -lm -lutil -ldl -shared" to the ld flags. Main Question: When...
2
by: joshusdog | last post by:
The installation of Python 2.5 comes with a bunch of built-in extension modules (.pyd files) under the DLLs directory. I've downloaded the Python source code and am trying to build the debug...
4
by: vedrandekovic | last post by:
Hi, I have already install Microsoft visual studio .NET 2003 and MinGw, when I try to build a extension: python my_extension_setup.py build ( or install ) , I get an error: LINK : fatal...
1
by: Daniel Nogradi | last post by:
It might be slightly off topic here but couldn't find a more suitable place for this question: I'm trying to build the python binding for ming -- http://ming.sf.net -- but for some reason the...
4
by: Arnaud Delobelle | last post by:
Hi fellow python enthusiasts. Having recently acquired a MacBook Pro (Intel Core 2 Duo) which comes with python2.5, I have been installing some modules that I need (PIL, psycopg2, PyXML ...). ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.