[Distutils] Derivative files
Ian Bicking
ianb at colorstudy.com
Mon Apr 23 05:22:42 CEST 2007
Phillip J. Eby wrote:
> At 06:11 PM 4/20/2007 -0500, Ian Bicking wrote:
>> I made a distutils command to take the Javascript files in an
>> application and put them together and compress them. I'd like the
>> result to kind of always be there; it would be distributed with the egg
>> for instance. But I don't really want it in source control. So I think
>> I need to make this part of the build somehow. What should I look for
>> to do that?
>
> A couple of options:
>
> * Add it to MANIFEST.in, in which case it will be put in source
> distributions as well as the eggs, assuming it's in a package
> subdirectory and include_package_data is True
>
> * list it explicitly in package_data
Is there a good way to ensure the files are created if necessary? I.e.,
if someone checks out the code (without these files) and runs setup.py
install or develop, to make sure the compressing command is run?
--
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers
More information about the Distutils-SIG
mailing list