[Python-bugs-list] [ python-Bugs-462461 ] Some install scripts ignore ENV VARS (original) (raw)
noreply@sourceforge.net noreply@sourceforge.net
Thu, 18 Oct 2001 17:45:04 -0700
- Previous message: [Python-bugs-list] [ python-Bugs-471270 ] SystemError: unknown opcode
- Next message: [Python-bugs-list] [ python-Bugs-459423 ] setup.py ignores OPT make variable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: Closed Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Guido van Rossum (gvanrossum) 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: Guido van Rossum (gvanrossum) Date: 2001-10-18 17:45
Message: Logged In: YES user_id=6380
This is fixed in CVS for 2.2. Might be a good idea to fix this in the 2.1 branch as well.
Comment By: Guido van Rossum (gvanrossum) Date: 2001-09-18 15:52
Message: Logged In: YES user_id=6380
That's a reasonable request. Since you know your needs, we might make more progress if you figured out a patch (I imagine changes to setup.py or to the Makefile are needed) and uploaded it, so we know exactly what you'd like to see changed.
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
- Previous message: [Python-bugs-list] [ python-Bugs-471270 ] SystemError: unknown opcode
- Next message: [Python-bugs-list] [ python-Bugs-459423 ] setup.py ignores OPT make variable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]