Skip to content

Conversation

@mwcraig
Copy link
Member

@mwcraig mwcraig commented May 28, 2014

@embray @Cadair -- this should not be merged until the -vvv option is removed, have that in so any remaining problems can be debugged.

Feel free, if you want this fix immediately and I'm not around to update this PR, to close it and do your own with the fix.

Fix was to remove the deprecated --use-mirrors

@mwcraig
Copy link
Member Author

mwcraig commented May 29, 2014

Never mind -- this obviously did not do the trick!

@mwcraig mwcraig closed this May 29, 2014
@embray embray reopened this May 29, 2014
@embray
Copy link
Member

embray commented May 29, 2014

Reopening this anyways because we should still remove the --use-mirrors.

@embray
Copy link
Member

embray commented May 29, 2014

If I just run

pip install --find-links http://wheels.astropy.org/ --use-wheel scipy==0.13.1

at the command line that works.

@embray
Copy link
Member

embray commented May 29, 2014

This does seem to be working. The only change I think is to remove the -vvv which isn't needed now.

@embray embray mentioned this pull request May 29, 2014
@mwcraig
Copy link
Member Author

mwcraig commented May 29, 2014

Even the runs that are passing, though, are still not picking up the wheels...from the build at https://travis-ci.org/astropy/astropy/jobs/26306631

Downloading/unpacking scipy==0.13.1
  Getting page https://pypi.python.org/simple/scipy/
  URLs to search for versions for scipy==0.13.1:
  * https://pypi.python.org/simple/scipy/0.13.1
  * https://pypi.python.org/simple/scipy/
  * http://wheels.astropy.org/
  http://wheels.astropy.org/ uses an insecure transport scheme (http). Consider using https if wheels.astropy.org has it available
  * http://wheels2.astropy.org/
  http://wheels2.astropy.org/ uses an insecure transport scheme (http). Consider using https if wheels2.astropy.org has it available
  Skipping link http://wheels.astropy.org/ (from -f); not a file
  Skipping link http://wheels2.astropy.org/ (from -f); not a file
  Getting page https://pypi.python.org/simple/scipy/0.13.1

@embray
Copy link
Member

embray commented May 29, 2014

I think you need to scroll further down:

 Using version 0.13.1 (newest of versions: 0.13.1, 0.13.1, 0.13.1)

Downloading scipy-0.13.1-cp27-none-linux_x86_64.whl (19.7MB):

Downloading from URL https://www.mpia-hd.mpg.de/%7erobitaille/wheelhouse/scipy-0.13.1-cp27-none-linux_x86_64.whl (from https://www.mpia-hd.mpg.de/~robitaille/wheelhouse/)

...Downloading scipy-0.13.1-cp27-none-linux_x86_64.whl (19.7MB): 19.7MB downloaded

Installing collected packages: scipy

Successfully installed scipy

I think the debug messages you're referring to are from code that first tries to process the URL as a file path (and then skipping it because it's not a local file path).

@embray
Copy link
Member

embray commented May 29, 2014

Oh, how strange though. It's only for the build_sphinx run where it's failing.

@embray
Copy link
Member

embray commented May 29, 2014

Seems like that may have been a temporary issue though:

 Could not fetch URL http://wheels.astropy.org/: connection error: HTTPConnectionPool(host='wheels.astropy.org', port=80): Max retries exceeded with url: / (Caused by <class 'socket.error'>: [Errno 111] Connection refused)

Will skip URL http://wheels.astropy.org/ when looking for download links for scipy

let me try re-running that one.

@embray
Copy link
Member

embray commented May 29, 2014

@mwcraig Perhaps one other thing we should add is --no-index. This will prevent it from going to PyPI if the wheels can't be downloaded. That will of course cause the build to fail, but better have it fail immediately than have it sit there building scipy.

@mwcraig
Copy link
Member Author

mwcraig commented May 29, 2014

@embray -- I've seen some intermittent failures from wheels.astropy.org in the package_template builds too. I agree that --no-index would be useful.

I'll update this PR, removing -vvv and adding --no-index and a changelog, once we see what the restarted build does.

@mwcraig
Copy link
Member Author

mwcraig commented May 29, 2014

@embray -- Should the sphinx version be changed too? It is currrently pegged at 1.2b3.

@embray
Copy link
Member

embray commented May 29, 2014

No, that's unrelated.

@mwcraig
Copy link
Member Author

mwcraig commented May 29, 2014

True, but sphinx is getting built from source right now because the wheelhouses don't have 1.2b3...

@embray
Copy link
Member

embray commented May 29, 2014

I think that's expected and okay for now. I know there was something discussed about this a while back, but Sphinx has been at 1.2b3 for some time now for Reasons (that I can't recall).

@mwcraig
Copy link
Member Author

mwcraig commented May 29, 2014

We are down to fails because --no-index is on and there are no wheels for coveralls or sphinx 1.2b3.

Could code these in to not use wheels or build wheels for them or put --no-index back in.

I'd lean towards getting the wheels made, but am fine with any of these.

@embray
Copy link
Member

embray commented May 29, 2014

Ah, what about this. Two commands:

$PIP_PYPY=pip install --use-wheels
$PIP_ASTROPY=pip install --find-links http://wheels.astropy.org --find-links http://wheels2.astropy.org --use-wheels --no-index

Use $PIP_ASTROPY for dependencies we know we have our own wheels built for. Use $PIP_PYPI for any others.

@eteq
Copy link
Member

eteq commented May 29, 2014

PyPI now has a sphinx 1.2.2, so it may well be safe to do sphinx>=1.2b3 instead of == ... if you change it to that and it works, feel free to change it to that, @mwcraig. Alternatively, it looks like wheels2.astropy.org has sphinx 1.2.2, so it should probably be able to get the wheel from there.

@mwcraig
Copy link
Member Author

mwcraig commented May 30, 2014

I like the $PIP_PYPI approach -- I'll do that (and change the sphinx requirement). Originally 1.2b3 was required due to some bug (don't recall details) in 1.1.x.

@embray
Copy link
Member

embray commented May 30, 2014

@mwcraig Thanks for taking this on. I hope this approach will do the trick. We really need this since this is causing all the builds to go haywire 😾

@mwcraig
Copy link
Member Author

mwcraig commented May 30, 2014

Not a problem...I think I still come out way ahead in the cost/benefit sense as far as astropy goes :)

@mwcraig
Copy link
Member Author

mwcraig commented May 30, 2014

@embray -- do you want me to squash before this is merged? Some of the runs are still taking a long time (15-25 min), about 12min of that actually running the tests in some cases. Am guessing that is out of our control, though...

@embray
Copy link
Member

embray commented May 30, 2014

If I were to hazard a guess it would be the sudo apt-get install steps that are sometimes taking a long time. Those can be quite slow when their servers are under heavy load. Not our problem though. Looks good! You can squash if you want.

@eteq
Copy link
Member

eteq commented May 30, 2014

I see this is squashed and tests pass, so I'm going to go ahead and merge this. Thanks @mwcraig !

eteq added a commit that referenced this pull request May 30, 2014
Make travis builds use wheels again
@eteq eteq merged commit bf6a6ac into astropy:master May 30, 2014
@mwcraig mwcraig deleted the fix-travis branch June 4, 2014 20:18
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

Successfully merging this pull request may close these issues.

3 participants