[Python-bugs-list] [ python-Bugs-462461 ] Some install scripts ignore ENV VARS
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 18 Sep 2001 14:27:54 -0700
Bugs item #462461, was opened at 2001-09-17 21:53
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=462461&group_id=5470
Category: Installation
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Some install scripts ignore ENV VARS
Initial Comment:
I am trying to make a python 2.1.1 RPM for my linux
distro. I am running into a problem during the python
install. It seems that pydoc is trying to get
installed into my systems /usr/bin (good thing I build
rpms as a unprivledged user). From what I can tell,
whatever installs pydoc seems to ignore $BINDIR and
$prefix as I set them in my "make install" command.
copying build/lib.linux-i686-2.1/zlib.so ->
/home/miah/rpm_build/tmp/python-
root/usr/lib/python2.1/lib-dynload
copying build/lib.linux-i686-2.1/linuxaudiodev.so ->
/home/miah/rpm_build/tmp/python-
root/usr/lib/python2.1/lib-dynload
running install_scripts
copying build/scripts/pydoc -> /usr/bin
error: /usr/bin/pydoc: Permission denied
make: *** [sharedinstall] Error 1
error: Bad exit status
from /home/miah/rpm_build/tmp/rpm-tmp.23763
(%install)
My install command is
make prefix=$RPM_BUILD_ROOT/usr \
BINDIR=$RPM_BUILD_ROOT/usr/bin \
install
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-09-18 14:27
Message:
Logged In: NO
The reason I cannot use --prefix with configure is that
programs will get that path embedded into them as they are
compiled and expect for libs/modules/whatever to be in that
path. The way I get all RPMS to build proper (redhat, and
everybody else pretty much does this) is to build it with
normal parameters (ie, configure --prefix=/usr --whatever)
and then when you do your make install you simply pass a
different path to the Makefile.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2001-09-18 13:05
Message:
Logged In: YES
user_id=21627
It appears that passing --prefix to setup.py might solve
this problem. Would you like to verify this theory, and
produce a patch if it solves your problem?
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=462461&group_id=5470