* [gentoo-user] setuptools (python) - how to disable the sandbox ?
@ 2017-12-09 16:17 Helmut Jarausch
2017-12-09 16:43 ` Michael Orlitzky
2017-12-09 17:21 ` Mike Gilbert
0 siblings, 2 replies; 4+ messages in thread
From: Helmut Jarausch @ 2017-12-09 16:17 UTC (permalink / raw
To: gentoo-user
Hi,
I want to create an ebuild for a package that's not in the tree
(http://pypi.python.org/pypi/grako)
Unfortunately, this always fails due to
File "/usr/lib64/python3.6/site-packages/setuptools/sandbox.py",
line 411, in _violation
raise SandboxViolation(operation, args, kw)
setuptools.sandbox.SandboxViolation: SandboxViolation:
open('/var/tmp/portage/dev-python/grako-3.99.9/work/grako-3.99.9-python3_6/lib/ptr.py',
'wb') {}
I wouldn't mind the package to write to its own working directory
/var/tmp/portage/dev-python/grako-3.99.9/work
but I cannot find out how to disable setuptools.sandbox
I've tried addwrite "$S" and FEATURES=-usersandbox -sandbox
but nothing helps.
Many thanks for a hint,
Helmut
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] setuptools (python) - how to disable the sandbox ?
2017-12-09 16:17 [gentoo-user] setuptools (python) - how to disable the sandbox ? Helmut Jarausch
@ 2017-12-09 16:43 ` Michael Orlitzky
2017-12-09 16:50 ` Michael Orlitzky
2017-12-09 17:21 ` Mike Gilbert
1 sibling, 1 reply; 4+ messages in thread
From: Michael Orlitzky @ 2017-12-09 16:43 UTC (permalink / raw
To: gentoo-user
On 12/09/2017 11:17 AM, Helmut Jarausch wrote:
> Hi,
> I want to create an ebuild for a package that's not in the tree
> (http://pypi.python.org/pypi/grako)
>
> Unfortunately, this always fails due to
>
> File "/usr/lib64/python3.6/site-packages/setuptools/sandbox.py",
> line 411, in _violation
> raise SandboxViolation(operation, args, kw)
> setuptools.sandbox.SandboxViolation: SandboxViolation:
> open('/var/tmp/portage/dev-python/grako-3.99.9/work/grako-3.99.9-python3_6/lib/ptr.py',
> 'wb') {}
>
> I wouldn't mind the package to write to its own working directory
That's not usually a problem... what phase is this in, and which command
in the ebuild raised the error?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] setuptools (python) - how to disable the sandbox ?
2017-12-09 16:43 ` Michael Orlitzky
@ 2017-12-09 16:50 ` Michael Orlitzky
0 siblings, 0 replies; 4+ messages in thread
From: Michael Orlitzky @ 2017-12-09 16:50 UTC (permalink / raw
To: gentoo-user
On 12/09/2017 11:43 AM, Michael Orlitzky wrote:
>>
>> I wouldn't mind the package to write to its own working directory
>
> That's not usually a problem... what phase is this in, and which command
> in the ebuild raised the error?
>
And now that I've actually read the error message, these errors are
coming from setuptools, not from the Gentoo sandbox.
The last time that caused a problem, it was because of a missing
dependency. If your kernel supports it, you can set
FEATURES="network-sandbox" to catch those earlier.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] setuptools (python) - how to disable the sandbox ?
2017-12-09 16:17 [gentoo-user] setuptools (python) - how to disable the sandbox ? Helmut Jarausch
2017-12-09 16:43 ` Michael Orlitzky
@ 2017-12-09 17:21 ` Mike Gilbert
1 sibling, 0 replies; 4+ messages in thread
From: Mike Gilbert @ 2017-12-09 17:21 UTC (permalink / raw
To: gentoo-user
On Sat, Dec 9, 2017 at 11:17 AM, Helmut Jarausch <jarausch@skynet.be> wrote:
> Hi,
> I want to create an ebuild for a package that's not in the tree
> (http://pypi.python.org/pypi/grako)
>
> Unfortunately, this always fails due to
>
> File "/usr/lib64/python3.6/site-packages/setuptools/sandbox.py", line 411,
> in _violation
> raise SandboxViolation(operation, args, kw)
> setuptools.sandbox.SandboxViolation: SandboxViolation:
> open('/var/tmp/portage/dev-python/grako-3.99.9/work/grako-3.99.9-python3_6/lib/ptr.py',
> 'wb') {}
>
> I wouldn't mind the package to write to its own working directory
> /var/tmp/portage/dev-python/grako-3.99.9/work
> but I cannot find out how to disable setuptools.sandbox
>
> I've tried addwrite "$S" and FEATURES=-usersandbox -sandbox
>
> but nothing helps.
The setup.py file for grako contains this line:
setup_requires=['pytest-runner'],
You probably forgot to add a dependency on dev-python/pytest-runner to
your ebuild, or forgot to install it before testing.
A better solution yet is to patch setup.py to remove this line
altogether. It is only there to ensure that running "setup.py test"
will work, which is unimportant in an ebuild.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-12-09 17:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-09 16:17 [gentoo-user] setuptools (python) - how to disable the sandbox ? Helmut Jarausch
2017-12-09 16:43 ` Michael Orlitzky
2017-12-09 16:50 ` Michael Orlitzky
2017-12-09 17:21 ` Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox