1 |
On Sat, Dec 9, 2017 at 11:17 AM, Helmut Jarausch <jarausch@××××××.be> wrote: |
2 |
> Hi, |
3 |
> I want to create an ebuild for a package that's not in the tree |
4 |
> (http://pypi.python.org/pypi/grako) |
5 |
> |
6 |
> Unfortunately, this always fails due to |
7 |
> |
8 |
> File "/usr/lib64/python3.6/site-packages/setuptools/sandbox.py", line 411, |
9 |
> in _violation |
10 |
> raise SandboxViolation(operation, args, kw) |
11 |
> setuptools.sandbox.SandboxViolation: SandboxViolation: |
12 |
> open('/var/tmp/portage/dev-python/grako-3.99.9/work/grako-3.99.9-python3_6/lib/ptr.py', |
13 |
> 'wb') {} |
14 |
> |
15 |
> I wouldn't mind the package to write to its own working directory |
16 |
> /var/tmp/portage/dev-python/grako-3.99.9/work |
17 |
> but I cannot find out how to disable setuptools.sandbox |
18 |
> |
19 |
> I've tried addwrite "$S" and FEATURES=-usersandbox -sandbox |
20 |
> |
21 |
> but nothing helps. |
22 |
|
23 |
The setup.py file for grako contains this line: |
24 |
|
25 |
setup_requires=['pytest-runner'], |
26 |
|
27 |
You probably forgot to add a dependency on dev-python/pytest-runner to |
28 |
your ebuild, or forgot to install it before testing. |
29 |
|
30 |
A better solution yet is to patch setup.py to remove this line |
31 |
altogether. It is only there to ensure that running "setup.py test" |
32 |
will work, which is unimportant in an ebuild. |