Skip to content

Instantly share code, notes, and snippets.

@goldsmith
Last active January 6, 2024 07:25
Show Gist options
  • Select an option

  • Save goldsmith/7262122 to your computer and use it in GitHub Desktop.

Select an option

Save goldsmith/7262122 to your computer and use it in GitHub Desktop.

Revisions

  1. goldsmith revised this gist Nov 8, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion numpy_os_x_10_9.sh
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ export CFLAGS="-arch i386 -arch x86_64"
    export FFLAGS="-m32 -m64"
    export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64"
    export CC=gcc-4.2
    export CXX=g++ -arch i386 -arch x86_64
    export CXX="g++ -arch i386 -arch x86_64"

    pip install numpy
    # success!
  2. goldsmith revised this gist Nov 2, 2013. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions numpy_os_x_10_9.sh
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,9 @@ easy_install cython

    # make sure you have Homebrew
    brew install gfortran
    # if this is too slow or has an error
    # install gfotran from the Mac OS X Lion installer for Intel 64-bit processors
    # http://gcc.gnu.org/wiki/GFortranBinaries#MacOS

    # finally
    pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev
  3. goldsmith revised this gist Nov 2, 2013. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion numpy_os_x_10_9.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,20 @@
    # set up flags for Numpy C extentions compiling
    export CFLAGS="-arch i386 -arch x86_64"
    export FFLAGS="-m32 -m64"
    export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64"
    export CC=gcc-4.2
    export CXX=g++ -arch i386 -arch x86_64

    pip install numpy
    # success!
    # success!

    # now for scipy
    easy_install cython

    # make sure you have Homebrew
    brew install gfortran

    # finally
    pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev

    # Let me know if this works for you! [email protected]
  4. goldsmith created this gist Nov 1, 2013.
    8 changes: 8 additions & 0 deletions numpy_os_x_10_9.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    export CFLAGS="-arch i386 -arch x86_64"
    export FFLAGS="-m32 -m64"
    export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64"
    export CC=gcc-4.2
    export CXX=g++ -arch i386 -arch x86_64

    pip install numpy
    # success!