Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up ccache usage on Travis + try enabling on OSX #7651

Merged
merged 3 commits into from
Jul 26, 2017

Conversation

pv
Copy link
Member

@pv pv commented Jul 24, 2017

Fix up ccache usage on USE_SDIST and USE_WHEEL targets.
Pip by default builds in a directory with random name, which throws off the compiler result caching.

Also try to enable the caching on OSX, based on gh-7647 which was quite close.

Finally, add and use some tools for suppressing the huge output from scipy build commands
in the USE_SDIST and USE_WHEEL targets.

@andyfaff
Copy link
Contributor

I was still going on the PR, I just closed it to prevent travisCI pollution and spurious emails to devs. Anyway, from my latest test run on https://travis-ci.org/andyfaff/scipy/builds/256840423 I see a reduction from a 15min build (python setup.py build) time to ~4 minutes. So I'm hopeful that this approach works here.

@pv pv force-pushed the travis-ccache-2 branch 4 times, most recently from e4407f5 to ab74326 Compare July 24, 2017 23:13
Change the USE_SDIST and USE_WHEEL targets to do builds in a more
ccache-friendly way.

Also add a script tools/suppress_output.py for suppressing commands
outputs and printing tickers.
@pv
Copy link
Member Author

pv commented Jul 25, 2017 via email

@pv
Copy link
Member Author

pv commented Jul 25, 2017

Ok, seems to work now.

@andyfaff
Copy link
Contributor

Do you see speedup in Linux builds?

@pv
Copy link
Member Author

pv commented Jul 25, 2017 via email

@andyfaff
Copy link
Contributor

I looked through the changes to .travis.yml and cythonize.py, they look good to me. I haven't examined the suppress_output.py file.

@pv pv merged commit b865066 into scipy:master Jul 26, 2017
@pv
Copy link
Member Author

pv commented Jul 26, 2017

Thanks for the help with this @andyfaff.

@rgommers rgommers added the maintenance Items related to regular maintenance tasks label Jul 26, 2017
@rgommers rgommers added this to the 1.0 milestone Jul 26, 2017
@andyfaff
Copy link
Contributor

I'm very impressed with the speed of the OS X build/test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants