diff options
author | doko <doko@ubuntu.com> | 2013-08-01 15:32:49 +0200 |
---|---|---|
committer | doko <doko@ubuntu.com> | 2013-08-01 15:32:49 +0200 |
commit | e313d0ee801fd43662552c9ce0e6afd96a1a2fb1 (patch) | |
tree | a065c2ce9344e7318d9d17eabf3558285d805755 /Makefile.pre.in | |
parent | b86c2686220b2cba937af3d2296556f697dc7683 (diff) | |
download | cpython-e313d0ee801fd43662552c9ce0e6afd96a1a2fb1.tar.gz |
- Issue #18257: Fix readlink usage in python-config. Install the python
version again on Darwin.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index ad4eb30824..8103124f4f 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1201,6 +1201,13 @@ python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR} sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config + # On Darwin, always use the python version of the script, the shell + # version doesn't use the compiler customizations that are provided + # in python (_osx_support.py). + if test `uname -s` = Darwin; then \ + cp python-config.py python-config; \ + fi + # Install the include files INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY) |