설명 없음
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.

python.m4.patch 1.1KB

123456789101112131415161718192021222324
  1. --- /usr/share/aclocal-1.14/python.m4 2014-10-27 05:45:43.000000000 +0100
  2. +++ python.m4 2016-08-30 17:20:03.690623000 +0200
  3. @@ -111,6 +111,7 @@ AC_DEFUN([AM_PATH_PYTHON],
  4. import sys
  5. # Prefer sysconfig over distutils.sysconfig, for better compatibility
  6. # with python 3.x. See automake bug#10227.
  7. +# But not see <https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1408092>
  8. try:
  9. import sysconfig
  10. except ImportError:
  11. @@ -119,9 +120,12 @@ else:
  12. can_use_sysconfig = 1
  13. # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
  14. # <https://github.com/pypa/virtualenv/issues/118>
  15. +# Can't use sysconfig in CPython > 3.0 in debian since it's broken :
  16. +# <https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1408092>
  17. try:
  18. from platform import python_implementation
  19. - if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
  20. + if python_implementation() == 'CPython' and ( \
  21. + float(sys.version[[:3]]) > 3.0 or sys.version[[:3]] == '2.7'):
  22. can_use_sysconfig = 0
  23. except ImportError:
  24. pass"