Skip to content
Snippets Groups Projects
  1. Nov 13, 2016
  2. Nov 11, 2016
  3. Nov 09, 2016
  4. Nov 08, 2016
  5. Nov 06, 2016
  6. Nov 05, 2016
  7. Nov 04, 2016
  8. Nov 02, 2016
  9. Nov 01, 2016
  10. Oct 31, 2016
    • Barry Smith's avatar
      python: PYTHONHOME may not be the same as the prefix of the python executable (#2173) · a7143771
      Barry Smith authored
      On MacOS, brew installs /usr/local/bin/python but the Python prefix is not /usr/local/bin
      Use the python command sys.exec to get the correct directory, instead of the ad hoc self.prefix
      previously used
      
      This was a bear to debug; been driving me nuts since I started using spack.
      Since spack passes PYTHONHOME down to package builds in the environment
      it was passing PYTHONHOME of /usr/local/bin to the PETSc build that uses Python so
      the PETSc Python ./configure errored immediately with
      
      ImportError: No module named site
      
      since python could find no python modules. Todd Gamblin pointed out that my first try to fix
      this was wrong since it assumed the spack python was the same python used to run spack. Elizabeth Fischer
      suggested how to get it to work also with python3
      
      Funded-by: IDEAS
      Project: IDEAS/xSDK
      Time:  7 hours
      Thanks-to: Todd Gamblin, Elizabeth Fischer
      a7143771
  11. Oct 30, 2016
  12. Oct 29, 2016
  13. Oct 27, 2016
  14. Oct 26, 2016
Loading