Christoph Zwerschke <[EMAIL PROTECTED]> writes: > But it is typical that you may want to copy the static pages and some > config files to certain places when installing the egg. The exact place > is surely environment dependent. It would be still left to you to > configure that in your prod.cfg. > > My point was that instead of everybody adding their own copy routine, > config settings and breaking their heads on how to do that in the best > way with setuptools, wouldn't it be better if this was solved in a > prototpyical way in the setup.py of a quickstarted project already? > > "Make easy things easy, and hard things possible." > >>> Of course I can always add my own distribution script, but these things >>> are so typical that I think TurboGears should give some basic support. >> >> It does! You can use whatever setuptools provides. You can say where >> binary files should go, where extra data should go, where configuration >> files should go... It is there. > > According to the docs, I can only install files inside the package with > setuptools. I don't think installing the static pages to the htdocs > directory is possible that way: > http://peak.telecommunity.com/DevCenter/setuptools#non-package-data-files
Setuptools is an extension over distutils... Distutils allows you to do that with the --prefix option and the data_files directive. Setuptools provides "package_data" for data *inside* the package, as explained in the docs. http://docs.python.org/dist/dist.html http://docs.python.org/dist/node13.html -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

