Christopher Arndt wrote: > Adam Jones wrote: > > IMO anyone who > > deletes files without knowing what they are needs that kind of learning > > experience anyways. > > I agree :-) > > > I've seen that you put this recipe in the official docs. Here's a few > remarks and questions: > > - The setup.py snippet in the docs is missing the end quotation marks.
It isn't a full quote on the setup function call anyways, hence the ellipses. That said I cleaned it up a bit. > > - If you add the "entry_points" argument to setup() you'll probably want > to remove the "scripts" argument, don't you? Yes, you probably do. Really the only difference between the scripts argument and what we are doing here is that it moves the whole thing into the package and references that with setuptools. It makes working with it a little bit cleaner and opens things up for reuse (the start-sample command could also be tg-admin sample start with no code duplication) but it isn't exactly revolutionary. I'd like to know how the gui_scripts entry_point is supposed to work, as that would be really cool too. > > - For development you'll still want a sample-start.py script that just has: > > #!/usr/bin/env python > from sample.commands import start > start() > > or is there a way to use the entry point when the egg is not installed? > No, but there is a way to cheat on installation. Run "setup.py develop" and it will install your egg by telling setuptools to look in setup.py's current directory. That way any change you make to the project are automatically available without having to reinstall the egg each time. > - minor niggling: the comment in the start function should say "look in > the current directory" instead of "look in this directory". Fixed, thanks for the help. -Adam > > > Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

