[Patches] [ python-Patches-471894 ] Makefile installs pydoc incorrectly
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 16 Oct 2001 15:44:20 -0700
Patches item #471894, was opened at 2001-10-16 15:44
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=471894&group_id=5470
Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Makefile installs pydoc incorrectly
Initial Comment:
The 2.2.1 Makefile installs the pydoc program
incorrectly.
The Makefile calls setup.py to install various modules
and miscellanea. This script also installs pydoc
at /usr/local/pydoc.
The bug is that pydoc is *always* installed
in /usr/local, regardless of what install directory
might have been preferred.
Here is a patch to Makefile which fixes the problem:
--- Makefile Tue Oct 16 14:52:41 2001
+++ ../../Makefile Tue Oct 16 14:50:58 2001
@@ -718,7 +718,13 @@
# Install the dynamically loadable modules
# This goes into $(exec_prefix)
sharedinstall:
+ # The distributed Makefile doesn't pass --
install-scripts to setup.py, thus causing setup.py
+ # to assume that it should put its executable
scripts (specifically the pydoc program) into
+ # /usr/local, instead of where we want
things. We overcome this by explicitly specifying the
+ # --install-scripts option to setup.py. This
is hard to figure out; the best place to see the
+ # possible options to setup.py
is ./Lib/distutils/commands/install.py.
PYTHONPATH= ./$(PYTHON) $(srcdir)/setup.py
install \
+ --install-scripts=$(BINDIR) \
--install-platlib=$(DESTSHARED)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=471894&group_id=5470