Skip to content

Commit ba77fc8

Browse files
committed
Patch python#102588 / PEP 229:
The final piece of this change... Run setup.py to build shared modules and to install them.
1 parent a544ea2 commit ba77fc8

1 file changed

Lines changed: 20 additions & 15 deletions

File tree

Makefile.in

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,11 @@ buildno:
157157

158158
# Build the shared modules
159159
sharedmods: python$(EXE)
160-
cd Modules; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
161-
prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
162-
sharedmods
160+
./python$(EXE) $(srcdir)/setup.py build
161+
# Old rules for building shared modules using makesetup
162+
# cd Modules; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
163+
# prefix="$(prefix)" exec_prefix="$(exec_prefix)" \
164+
# sharedmods
163165

164166
# Build the library
165167
$(LIBRARY): $(SUBDIRS)
@@ -422,17 +424,19 @@ libainstall: all
422424
# Install the dynamically loadable modules
423425
# This goes into $(exec_prefix)
424426
sharedinstall:
425-
cd Modules; $(MAKE) \
426-
OPT="$(OPT)" \
427-
VERSION="$(VERSION)" \
428-
SO="$(SO)" \
429-
LDSHARED="$(LDSHARED)" \
430-
CCSHARED="$(CCSHARED)" \
431-
LINKFORSHARED="$(LINKFORSHARED)" \
432-
DESTSHARED="$(DESTSHARED)" \
433-
prefix="$(prefix)" \
434-
exec_prefix="$(exec_prefix)" \
435-
sharedinstall
427+
./python$(EXE) $(srcdir)/setup.py install
428+
# Old rules for installing shared modules built using makesetup
429+
# cd Modules; $(MAKE) \
430+
# OPT="$(OPT)" \
431+
# VERSION="$(VERSION)" \
432+
# SO="$(SO)" \
433+
# LDSHARED="$(LDSHARED)" \
434+
# CCSHARED="$(CCSHARED)" \
435+
# LINKFORSHARED="$(LINKFORSHARED)" \
436+
# DESTSHARED="$(DESTSHARED)" \
437+
# prefix="$(prefix)" \
438+
# exec_prefix="$(exec_prefix)" \
439+
# sharedinstall
436440

437441
# Build the sub-Makefiles
438442
Makefiles: config.status Modules/Makefile.pre
@@ -515,7 +519,8 @@ clean: localclean
515519

516520
localclobber: localclean
517521
-rm -f tags TAGS python$(EXE) $(LIBRARY) $(LDLIBRARY) *.o
518-
-rm -f config.log config.cache config.h
522+
-rm -f config.log config.cache config.h
523+
-rm -rf build
519524

520525
clobber: localclobber
521526
-for i in $(SUBDIRS); do \

0 commit comments

Comments
 (0)