On 1 Apr., 15:16, werner <wbru...@free.fr> wrote:
> I tried this in the conf.py but the folders are still copied to e.g.
> html/build/_static/macWidgets:
>
> exclude_patterns = ['_static/macWidgets/.svn',
>                      '_static/winWidgets/.svn',
>                      '_static/nixWidgets/.svn',
>                      '**/.svn']
>
> I am on Windows 7 with Sphinx 1.0.7

Same problem here with 1.0.7 under both Linux and Win.

Found that it is caused by the sphinx.util function
copy_static_entry() using shutil.copytree() for subdirectories that
are not on the top level. It should probably use the ignore parameter
here, like this:

    shutil.copytree(source, target,
        ignore=shutil.ignore_patterns('.svn'))

Unfortunately, you can't just write ignore_patterns(exclude_matchers)
here because exclude_matchers are regex patterns and not glob-style
patterns. Also, ignore_patterns exists only since Py 2.6. So a proper
fix should use a custom ignore function here.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to