Summary: | dev-python/astropy-0.4 - #warning "Using deprecated NumPy API - Exception: Error retrieving astropy helpers from https://pypi.python.org/simple: DistutilsError("Setup script exited with error: SandboxViolation | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Development | Assignee: | Gentoo Astronomy project <sci-astronomy> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Juergen Rose
2014-10-28 08:26:30 UTC
This is fixed by adding the following to the astropy ebuild: python_prepare_all() { distutils-r1_python_prepare_all sed -e '/import ah_bootstrap/d' -i setup.py || die "Removing ah_bootstrap failed" } The problem is that astropy doesn't check if astropy-helpers is installed before building its bundled version. This build results in the SandboxViolation you get. Since portage handles the deps (although astropy-helpers should probably just be in RDEPEND), it's fine to ignore the astropy-helper bootstrap script. @Juergen is it still an issue? I cannot reproduce it with astropy-helpers installed (In reply to Kacper Kowalik (Xarthisius) from comment #2) > @Juergen is it still an issue? I cannot reproduce it with astropy-helpers > installed I just hit the issue again on several systems. (In reply to Juergen Rose from comment #3) > (In reply to Kacper Kowalik (Xarthisius) from comment #2) > > @Juergen is it still an issue? I cannot reproduce it with astropy-helpers > > installed > > I just hit the issue again on several systems. I just hit it with aplpy while bumping, but astropy installs just fine. I hate random bugs... (In reply to Joseph Booker from comment #1) > This is fixed by adding the following to the astropy ebuild: > > python_prepare_all() { > distutils-r1_python_prepare_all > sed -e '/import ah_bootstrap/d' -i setup.py || die "Removing ah_bootstrap > failed" > } > > The problem is that astropy doesn't check if astropy-helpers is installed > before building its bundled version. This build results in the > SandboxViolation you get. > > Since portage handles the deps (although astropy-helpers should probably > just be in RDEPEND), it's fine to ignore the astropy-helper bootstrap script. "astropy-helpers" is installed, but nevertheless I see this error. I don't have any python_prepare_all in astropy-0.4.ebuild. Should I add it? (In reply to Juergen Rose from comment #5) > (In reply to Joseph Booker from comment #1) > > This is fixed by adding the following to the astropy ebuild: > > > > python_prepare_all() { > > distutils-r1_python_prepare_all > > sed -e '/import ah_bootstrap/d' -i setup.py || die "Removing ah_bootstrap > > failed" > > } > > > > The problem is that astropy doesn't check if astropy-helpers is installed > > before building its bundled version. This build results in the > > SandboxViolation you get. > > > > Since portage handles the deps (although astropy-helpers should probably > > just be in RDEPEND), it's fine to ignore the astropy-helper bootstrap script. > > "astropy-helpers" is installed, but nevertheless I see this error. > > I don't have any python_prepare_all in astropy-0.4.ebuild. Should I add it? I'll push new version (without revision bump) with fix suggested by Joseph in just a few minutes. Wait for it to hit the rsync servers and please try it out. (In reply to Kacper Kowalik (Xarthisius) from comment #6) > (In reply to Juergen Rose from comment #5) > > (In reply to Joseph Booker from comment #1) > > > This is fixed by adding the following to the astropy ebuild: > > > > > > python_prepare_all() { > > > distutils-r1_python_prepare_all > > > sed -e '/import ah_bootstrap/d' -i setup.py || die "Removing ah_bootstrap > > > failed" > > > } > > > > > > The problem is that astropy doesn't check if astropy-helpers is installed > > > before building its bundled version. This build results in the > > > SandboxViolation you get. > > > > > > Since portage handles the deps (although astropy-helpers should probably > > > just be in RDEPEND), it's fine to ignore the astropy-helper bootstrap script. > > > > "astropy-helpers" is installed, but nevertheless I see this error. > > > > I don't have any python_prepare_all in astropy-0.4.ebuild. Should I add it? > > I'll push new version (without revision bump) with fix suggested by Joseph > in just a few minutes. Wait for it to hit the rsync servers and please try > it out. I've figured it out. You were building docs, and setup.py was missing --offline in that phase. + 27 Nov 2014; Kacper Kowalik <xarthisius@gentoo.org> astropy-0.4.ebuild: + Pass --offline to setup.py during all phases. Fixes bug #527196 by Juergen + Rose <rose@rz.uni-potsdam.de>, fix dependency on wcslib + |