[SciPy-User] Installing scipy on MacOS X

Matthew Brett matthew.brett at gmail.com
Mon Jun 15 21:13:12 EDT 2015


Hi,

On Mon, Jun 15, 2015 at 6:05 PM, Slater Joseph C , PhD, PE
<joseph.slater at wright.edu> wrote:
>
>> On Jun 15, 2015, at 4:11 PM, Matthew Brett <matthew.brett at gmail.com> wrote:
>>
>> On Mon, Jun 15, 2015 at 1:07 PM, Ralf Gommers <ralf.gommers at gmail.com> wrote:
>>>
>>>
>>> On Mon, Jun 15, 2015 at 9:59 PM, Slater Joseph C , PhD, PE
>>> <joseph.slater at wright.edu> wrote:
>>>>
>>
>> There should always be a working from-scratch build procedure in
>> https://github.com/MacPython/scipy-wheels/blob/master/.travis.yml
>>
>> It's in .travis.yml format, and it does some post-build processing
>> that is irrelevant for your case, but at least it is a build that
>> works on a default OSX system.
>>
>
> Well, I was able to create a fork (my first), add the .travis.yml file, mod, push, and see that it all built on travis-ci.org, which seems pretty magical, but for the fact that I have no clue how to build on my own system using the .travis.yml file. Is there a doc on how to use it locally?

Ah - no - I only pointed that out in case it was obvious how to read
the recipe there.

Here's the relevant bits:

"""
- sudo installer -pkg archives/gfortran-4.2.3.pkg -target /
- pip install cython
- pip install numpy==$NUMPY_VERSION
- cd scipy
- export CC=clang
- export CXX=clang++
"""

which mean, respectively:

* Install gfortran 4.2.3 dual arch build from pkg installer (in fact
archived at https://github.com/MacPython/scipy-wheels/blob/master/archives/gfortran-4.2.3.pkg
for posterity and this repo);

* pip install cython numpy
* cd scipy
* export CC=clang
* export CXX=clang++
* python setup.py install   # or whatever local install method you like

The repo just assures us that that this still works, and builds our
wheels for us when we release...

Cheers,

Matthew



More information about the SciPy-User mailing list