Guest User

Untitled

a guest
Jul 2nd, 2021
36
62 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ which openssl
  2. /Users/me/.brew/opt/openssl/bin/openssl
  3. $ ~/.brew/opt/openssl/bin/openssl
  4. OpenSSL> version
  5. OpenSSL 1.0.2m 2 Nov 2017
  6. $ CPPFLAGS="-I~/.brew/opt/openssl/include/openssl/include" LDFLAGS="-L~/.brew/opt/openssl/include/openssl/lib" pyenv install -v 2.6.6
  7. python-build: use openssl from homebrew
  8. python-build: use readline from homebrew
  9. /var/folders/75/0f43k9hs2lq88zz28jpm8t18wm1rhf/T/python-build.20210702144723.75537 ~
  10. Downloading Python-2.6.6.tar.gz...
  11. -> https://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz
  12. /var/folders/75/0f43k9hs2lq88zz28jpm8t18wm1rhf/T/python-build.20210702144723.75537/Python-2.6.6 /var/folders/75/0f43k9hs2lq88zz28jpm8t18wm1rhf/T/python-build.20210702144723.75537 ~
  13. Installing Python-2.6.6...
  14. patching file setup.py
  15. Hunk #1 FAILED at 345.
  16. 1 out of 1 hunk FAILED -- saving rejects to file setup.py.rej
  17. patching file ./Modules/readline.c
  18. Hunk #1 succeeded at 199 (offset -7 lines).
  19. Hunk #2 succeeded at 698 (offset -51 lines).
  20. Hunk #3 succeeded at 808 (offset -51 lines).
  21. Hunk #4 succeeded at 848 with fuzz 2 (offset -70 lines).
  22. patching file ./setup.py
  23. patching file ./Lib/ssl.py
  24. patching file ./Modules/_ssl.c
  25. Hunk #3 succeeded at 1695 (offset -1 lines).
  26.  
  27. BUILD FAILED (OS X 10.15.7 using python-build 20180424)
  28.  
  29. Inspect or clean up the working tree at /var/folders/75/0f43k9hs2lq88zz28jpm8t18wm1rhf/T/python-build.20210702144723.75537
  30. Results logged to /var/folders/75/0f43k9hs2lq88zz28jpm8t18wm1rhf/T/python-build.20210702144723.75537.log
  31.  
  32. Last 10 log lines:
  33. /var/folders/75/0f43k9hs2lq88zz28jpm8t18wm1rhf/T/python-build.20210702144723.75537 ~
  34. /var/folders/75/0f43k9hs2lq88zz28jpm8t18wm1rhf/T/python-build.20210702144723.75537/Python-2.6.6 /var/folders/75/0f43k9hs2lq88zz28jpm8t18wm1rhf/T/python-build.20210702144723.75537 ~
  35.  
  36. $ cat /var/folders/75/0f43k9hs2lq88zz28jpm8t18wm1rhf/T/python-build.20210702144723.75537/Python-2.6.6/setup.py.rej
  37. ***************
  38. *** 345,354 ****
  39. return platform
  40. return sys.platform
  41.  
  42. def detect_modules(self):
  43. # Ensure that /Users/me/.brew is always used
  44. add_dir_to_list(self.compiler.library_dirs, '/Users/me/.brew/lib')
  45. add_dir_to_list(self.compiler.include_dirs, '/Users/me/.brew/include')
  46.  
  47. # Add paths specified in the environment variables LDFLAGS and
  48. # CPPFLAGS for header and library files.
  49. --- 345,377 ----
  50. return platform
  51. return sys.platform
  52.  
  53. + def add_multiarch_paths(self):
  54. + # Debian/Ubuntu multiarch support.
  55. + # https://wiki.ubuntu.com/MultiarchSpec
  56. + if not find_executable('dpkg-architecture'):
  57. + return
  58. + tmpfile = os.path.join(self.build_temp, 'multiarch')
  59. + if not os.path.exists(self.build_temp):
  60. + os.makedirs(self.build_temp)
  61. + ret = os.system(
  62. + 'dpkg-architecture -qDEB_HOST_MULTIARCH > %s 2> /dev/null' %
  63. + tmpfile)
  64. + try:
  65. + if ret >> 8 == 0:
  66. + with open(tmpfile) as fp:
  67. + multiarch_path_component = fp.readline().strip()
  68. + add_dir_to_list(self.compiler.library_dirs,
  69. + '/usr/lib/' + multiarch_path_component)
  70. + add_dir_to_list(self.compiler.include_dirs,
  71. + '/usr/include/' + multiarch_path_component)
  72. + finally:
  73. + os.unlink(tmpfile)
  74. +
  75. def detect_modules(self):
  76. # Ensure that /Users/me/.brew is always used
  77. add_dir_to_list(self.compiler.library_dirs, '/Users/me/.brew/lib')
  78. add_dir_to_list(self.compiler.include_dirs, '/Users/me/.brew/include')
  79. + self.add_multiarch_paths()
  80.  
  81. # Add paths specified in the environment variables LDFLAGS and
  82. # CPPFLAGS for header and library files.
RAW Paste Data