Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'svn': 0.04; 'option,': 0.07; 'sadly': 0.07; 'skipping': 0.07; 'wrapper': 0.07; 'python': 0.08; 'bash': 0.09; 'deletes': 0.09; 'reply- to:addr:comp.lang.python': 0.09; 'subject:files': 0.09; 'to:addr:comp.lang.python': 0.09; 'files.': 0.09; 'cc:addr:python- list': 0.15; 'from:addr:tartley': 0.16; 'from:addr:tartley.com': 0.16; 'from:name:jonathan hartley': 0.16; 'takes,': 0.16; 'cc:no real name:2**0': 0.21; 'asked': 0.22; 'header:In-Reply-To:1': 0.23; 'shell': 0.24; 'checkout': 0.25; 'guess': 0.25; 'fine': 0.26; 'windows': 0.26; 'received:209.85.220': 0.27; 'specifically': 0.27; 'script': 0.28; 'delay': 0.28; 'cc:addr:python.org': 0.29; 'does': 0.32; "can't": 0.32; 'someone': 0.33; 'this.': 0.33; 'operating': 0.33; 'header:User- Agent:1': 0.33; 'on,': 0.33; 'install': 0.34; 'largest': 0.34; 'file': 0.36; 'cc:2**1': 0.36; 'but': 0.37; 'could': 0.38; 'received:google.com': 0.38; 'some': 0.38; 'received:209.85': 0.38; 'url:en': 0.38; 'why': 0.39; 'subject:: ': 0.39; 'delete': 0.40; 'files': 0.40; 'received:209': 0.40; 'your': 0.61; 'kind': 0.62; 'human': 0.63; 'saw': 0.67; 'header:Reply-To:1': 0.70; 'reply-to:no real name:2**0': 0.71; 'reply- to:addr:googlegroups.com': 0.73 Newsgroups: comp.lang.python Date: Fri, 4 Nov 2011 02:27:58 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.170.71.168; posting-account=p0hmcAoAAABcd-yUxQUlUJWkP4UextqO References: <4EB14D9D.8080309@gmail.com> <11169846.60.1320306575820.JavaMail.geo-discussion-forums@yqiu15> User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: leftover pyc files From: Jonathan Hartley To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org, Peter Otten <__peter__@web.de> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: comp.lang.python@googlegroups.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1320398887 news.xs4all.nl 6844 [2001:888:2000:d::a6]:51462 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15329 I like to install a Bash shell of some kind on windows boxes I work on, spe= cifically so I can use shell commands like this, just like on any other ope= rating system. Cywin works just fine for this. svn also has hooks, but sadly not a checkout hook: http://svnbook.red-bean.com/en/1.1/ch05s02.html I guess you could write your own two-line wrapper script which does the che= ckout and then deletes the pyc files. I don't understand why deleting only some pyc files is important. Can't you= just delete them all and let Python re generate the ones you need? I once = saw someone create the longest python file they could to see how long gener= ating pyc files takes, and it is very very quick indeed. A human could not = notice the delay even for the largest of projects. Finally, someone asked about skipping .svn dirs: find has a '-prune' option= , you can read about it on the manpage.