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

Use pip cache on AppVeyor and Travis #38

Closed
cmeeren opened this issue Nov 22, 2015 · 10 comments
Closed

Use pip cache on AppVeyor and Travis #38

cmeeren opened this issue Nov 22, 2015 · 10 comments
Assignees

Comments

@cmeeren
Copy link
Contributor

cmeeren commented Nov 22, 2015

Speed up pip install is a really great idea. Caches are supported on both Travis and AppVeyor. It would be great if you could enable caching so it works locally and at Travis and AppVeyor!

(I'm developing an extension that depends on numpy, which takes quite a while to compile each time...)

@ionelmc
Copy link
Owner

ionelmc commented Nov 22, 2015

This should be solved by #36, at least for Travis.

Doesn't it work?

@cmeeren
Copy link
Contributor Author

cmeeren commented Nov 22, 2015

Probably - I'm still on an old version of cookiecutter-pypackage. However I'd really like to see this for AppVeyor as well, since fully testing my aacgmv2 package with no cache takes several hours due to building numpy.

@cmeeren
Copy link
Contributor Author

cmeeren commented Nov 22, 2015

Oh, and if it could work locally as well, that would be swell. Creating/re-creating a test environment with numpy with no cache takes maybe 10 minutes on Windows. D:

@ionelmc
Copy link
Owner

ionelmc commented Nov 22, 2015

Try https://pypi.python.org/pypi/cookiepatcher to update project.

@cmeeren
Copy link
Contributor Author

cmeeren commented Nov 22, 2015

Thanks! The configuration files are rather heavily changed though, don't know how well it will work in this specific case. Will keep it in mind for the future, though!

@cmeeren
Copy link
Contributor Author

cmeeren commented Dec 7, 2015

Are you planning on implementing this on AppVeyor or locally? Building things can take a long time on Windows, so at least on Appveyor it's needed.

@ionelmc
Copy link
Owner

ionelmc commented Dec 7, 2015

Yes, on my long TODO list 😬. Wouldn't mind if someone else do it 😋

@cmeeren
Copy link
Contributor Author

cmeeren commented Dec 7, 2015

I see that appveyor.yml already has

cache:
  - '%LOCALAPPDATA%\pip\Cache'

Is this all that's needed? In other words, is AppVeyor caching already implemented? Ref. #36 to see how it was implemented for Travis. Also perhaps see 1644762 where these lines were added.

@cmeeren
Copy link
Contributor Author

cmeeren commented Dec 7, 2015

Also, from what I can see from the pip changelog, it automatically builds and caches wheels since 7.0.0. If this is true, and it's already implemented on AppVeyor as indicated above, then there's really nothing to do here and this issue can be closed.

@ionelmc
Copy link
Owner

ionelmc commented Dec 7, 2015

Let me verify this

@ionelmc ionelmc self-assigned this Dec 7, 2015
@ionelmc ionelmc closed this as completed Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants