[docs] [issue10373] Setup Script example incorrect

Kirk Clendinning report at bugs.python.org
Tue Nov 9 14:09:06 CET 2010


New submission from Kirk Clendinning <kirk at heliospectra.se>:

In 2.7. Installing Additional Files the example shows:

setup(...,
      data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']),
                  ('config', ['cfg/data.cfg']),
                  ('/etc/init.d', ['init-script'])]
     )

However, running easy_install with setuptools results in a error:

Setup script exited with error: SandboxViolation: open('/etc/init.d/init-script', 'wb') {}

Perhaps the documentation should be changed and more explanation added.

----------
assignee: docs at python
components: Documentation
messages: 120863
nosy: docs at python, lensart
priority: normal
severity: normal
status: open
title: Setup Script example incorrect
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10373>
_______________________________________


More information about the docs mailing list