Create a file (.svnignore) with the regular expressions
h .svnignore
*.pyc *~
Run svn propset on the project
svn -R propset svn:ignore -F .svnignore .
If you’ve already got yourself into the mess of versioning your compiled files, then you might want to do a few things.
find -name "*.pyc" -exec svn revert {} \;
find -name "*.pyc" -exec svn delete {} \;
mkdir external svn pe svn:externals external
add local and remote dir (as for example)
django http://code.djangoproject.com/svn/django/trunk/django