setup.py executing always trying "copy_tree"

Bug #301747 reported by Luciano Pacheco
2
Affects Status Importance Assigned to Milestone
TextFlow
Fix Committed
High
Yuri Malheiros

Bug Description

The setup.py always call "copy_tree("TextFlow/languages", "/usr/share/textflow/languages")"

But this is wrong, you can do this:

python setup.py --help

To show setup.py options and helps, but with "copy_tree" in this way, always trying to do the copy ...

To reproduce the error, execute as normal user (not a root), this command:
python setup.py --help

copying TextFlow/languages/python/config.py -> /usr/share/textflow/languages/python
Traceback (most recent call last):
  File "setup.py", line 36, in <module>
    copy_tree("TextFlow/languages", "/usr/share/textflow/languages")
  File "/usr/lib/python2.5/distutils/dir_util.py", line 172, in copy_tree
    dry_run=dry_run))
  File "/usr/lib/python2.5/distutils/dir_util.py", line 175, in copy_tree
    preserve_times, update, dry_run=dry_run)
  File "/usr/lib/python2.5/distutils/file_util.py", line 165, in copy_file
    _copy_file_contents(src, dst)
  File "/usr/lib/python2.5/distutils/file_util.py", line 44, in _copy_file_contents
    "could not delete '%s': %s" % (dst, errstr)
distutils.errors.DistutilsFileError: could not delete '/usr/share/textflow/languages/python/config.py': Permission denied

Changed in textflow:
importance: Undecided → High
milestone: none → 0.3.0
status: New → Confirmed
Changed in textflow:
assignee: nobody → yurimalheiros
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.