Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38815
| Subject | Re: Python Makefiles... are they possible? |
|---|---|
| From | Benjamin Schollnick <benjamin@schollnick.net> |
| Date | 2013-02-13 05:45 -0500 |
| References | <e8d436e1-f226-4a81-968f-295c51198198@googlegroups.com> <mailman.1731.1360717275.2939.python-list@python.org> <roy-270198.20063512022013@news.panix.com> <511b2a7c$0$11096$c3e8da3@news.astraweb.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1742.1360752320.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
>> One thing we do in our Makefiles is "find . -name '*.pyc' | xargs rm". >> It avoids all sorts of nasty and hard to track down bugs (consider what >> happens if you move a .py file from one place in your source tree to >> another and leave the old .pyc behind). > > How often do you move files around in the source tree? Meanwhile, *every* > time you run make, you take a performance hit on every Python module in > your project, whether it has moved or not. > > Seems to me like a fairly heavy-handed response for something quite rare, > but I suppose that depends on how often you run make. If the performance hit doesn't really matter. Then simply walk the build tree, compare time date stamps, anything that doesn't match up in the make directory, gets deleted. Anything that has different Date Created / Date Modified time from the build tree match, get's deleted. This way, we are preserving any files that should be identical. But there should be some mechanism documented to forcibly clear the build cache. - Benjamin
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python Makefiles... are they possible? Malcolm White <white.m88@gmail.com> - 2013-02-12 16:44 -0800
Re: Python Makefiles... are they possible? Joel Goldstick <joel.goldstick@gmail.com> - 2013-02-12 19:55 -0500
Re: Python Makefiles... are they possible? Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-02-13 01:00 +0000
Re: Python Makefiles... are they possible? Roy Smith <roy@panix.com> - 2013-02-12 20:06 -0500
Re: Python Makefiles... are they possible? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-13 05:54 +0000
Re: Python Makefiles... are they possible? Benjamin Schollnick <benjamin@schollnick.net> - 2013-02-13 05:45 -0500
Re: Python Makefiles... are they possible? Dave Angel <d@davea.name> - 2013-02-13 08:33 -0500
Re: Python Makefiles... are they possible? Roy Smith <roy@panix.com> - 2013-02-13 08:44 -0500
Re: Python Makefiles... are they possible? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-02-14 13:46 +1100
Re: Python Makefiles... are they possible? Roy Smith <roy@panix.com> - 2013-02-13 22:02 -0500
Re: Python Makefiles... are they possible? Chris Angelico <rosuav@gmail.com> - 2013-02-14 17:43 +1100
csiph-web