Patch #102588 / PEP 229:

The final piece of this change...

   Run setup.py to build shared modules and to install them.
This commit is contained in:
Andrew M. Kuchling 2001-01-17 18:54:54 +00:00
parent a544ea2354
commit ba77fc8cf0

View file

@ -157,9 +157,11 @@ buildno:
# Build the shared modules # Build the shared modules
sharedmods: python$(EXE) sharedmods: python$(EXE)
cd Modules; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \ ./python$(EXE) $(srcdir)/setup.py build
prefix="$(prefix)" exec_prefix="$(exec_prefix)" \ # Old rules for building shared modules using makesetup
sharedmods # cd Modules; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
# prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
# sharedmods
# Build the library # Build the library
$(LIBRARY): $(SUBDIRS) $(LIBRARY): $(SUBDIRS)
@ -422,17 +424,19 @@ libainstall: all
# Install the dynamically loadable modules # Install the dynamically loadable modules
# This goes into $(exec_prefix) # This goes into $(exec_prefix)
sharedinstall: sharedinstall:
cd Modules; $(MAKE) \ ./python$(EXE) $(srcdir)/setup.py install
OPT="$(OPT)" \ # Old rules for installing shared modules built using makesetup
VERSION="$(VERSION)" \ # cd Modules; $(MAKE) \
SO="$(SO)" \ # OPT="$(OPT)" \
LDSHARED="$(LDSHARED)" \ # VERSION="$(VERSION)" \
CCSHARED="$(CCSHARED)" \ # SO="$(SO)" \
LINKFORSHARED="$(LINKFORSHARED)" \ # LDSHARED="$(LDSHARED)" \
DESTSHARED="$(DESTSHARED)" \ # CCSHARED="$(CCSHARED)" \
prefix="$(prefix)" \ # LINKFORSHARED="$(LINKFORSHARED)" \
exec_prefix="$(exec_prefix)" \ # DESTSHARED="$(DESTSHARED)" \
sharedinstall # prefix="$(prefix)" \
# exec_prefix="$(exec_prefix)" \
# sharedinstall
# Build the sub-Makefiles # Build the sub-Makefiles
Makefiles: config.status Modules/Makefile.pre Makefiles: config.status Modules/Makefile.pre
@ -516,6 +520,7 @@ clean: localclean
localclobber: localclean localclobber: localclean
-rm -f tags TAGS python$(EXE) $(LIBRARY) $(LDLIBRARY) *.o -rm -f tags TAGS python$(EXE) $(LIBRARY) $(LDLIBRARY) *.o
-rm -f config.log config.cache config.h -rm -f config.log config.cache config.h
-rm -rf build
clobber: localclobber clobber: localclobber
-for i in $(SUBDIRS); do \ -for i in $(SUBDIRS); do \