You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.1 KiB

  1. --- a/Lib/distutils/sysconfig.py
  2. +++ b/Lib/distutils/sysconfig.py
  3. @@ -421,6 +421,7 @@ def _init_posix():
  4. platform=sys.platform,
  5. multiarch=getattr(sys.implementation, '_multiarch', ''),
  6. ))
  7. + name = '_sysconfigdata'
  8. _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
  9. build_time_vars = _temp.build_time_vars
  10. global _config_vars
  11. --- a/Lib/sysconfig.py
  12. +++ b/Lib/sysconfig.py
  13. @@ -343,6 +343,7 @@ def get_makefile_filename():
  14. def _get_sysconfigdata_name():
  15. + return '_sysconfigdata'
  16. return os.environ.get('_PYTHON_SYSCONFIGDATA_NAME',
  17. '_sysconfigdata_{abi}_{platform}_{multiarch}'.format(
  18. abi=sys.abiflags,
  19. --- a/Makefile.pre.in
  20. +++ b/Makefile.pre.in
  21. @@ -1304,7 +1304,7 @@ libinstall: build_all $(srcdir)/Modules/
  22. esac; \
  23. done; \
  24. done
  25. - $(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py \
  26. + $(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata*.py \
  27. $(DESTDIR)$(LIBDEST); \
  28. $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
  29. @@ -1404,7 +1404,7 @@ sharedinstall: sharedmods
  30. --install-scripts=$(BINDIR) \
  31. --install-platlib=$(DESTSHARED) \
  32. --root=$(DESTDIR)/
  33. - -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py
  34. + -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata*.py
  35. -rm -r $(DESTDIR)$(DESTSHARED)/__pycache__
  36. # Here are a couple of targets for MacOSX again, to install a full
  37. --- a/configure
  38. +++ b/configure
  39. @@ -15005,7 +15005,7 @@ LDVERSION='$(VERSION)$(ABIFLAGS)'
  40. $as_echo "$LDVERSION" >&6; }
  41. -if test x$PLATFORM_TRIPLET = x; then
  42. +if true ; then
  43. LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
  44. else
  45. LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
  46. --- a/configure.ac
  47. +++ b/configure.ac
  48. @@ -4656,7 +4656,7 @@ AC_MSG_RESULT($LDVERSION)
  49. dnl define LIBPL after ABIFLAGS and LDVERSION is defined.
  50. AC_SUBST(PY_ENABLE_SHARED)
  51. -if test x$PLATFORM_TRIPLET = x; then
  52. +if true ; then
  53. LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
  54. else
  55. LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"