liten-bootstrap.py

0 views
Skip to first unread message

techtonik

unread,
Mar 17, 2010, 4:48:26 AM3/17/10
to liten
Hello,

There is liten-bootstrap.py at http://code.google.com/p/liten/source/browse/
with header that says that the file is autogenerated. What is the
purpose of it? I am afraid it is getting outdated.

--
anatoly t.

noah.gift

unread,
Mar 22, 2010, 6:06:57 PM3/22/10
to liten
The bootstrap script is old cruft. We should dump it.

On Mar 17, 1:48 am, techtonik <techto...@gmail.com> wrote:
> Hello,
>
> There is liten-bootstrap.py athttp://code.google.com/p/liten/source/browse/

anatoly techtonik

unread,
Mar 23, 2010, 1:29:48 AM3/23/10
to liten
Dumped. Seems like it was used to quickly setup environment for liten
development, wasn't it? Are there any modern approaches?
--
anatoly t.

> --
> You received this message because you are subscribed to the Google Groups "liten" group.
> To post to this group, send email to li...@googlegroups.com.
> To unsubscribe from this group, send email to liten+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liten?hl=en.
>
>

Noah Gift

unread,
Mar 23, 2010, 1:33:13 AM3/23/10
to li...@googlegroups.com
I still think a "bootstrap" of some kind isn't a bad idea if we actually have external dependencies.  We don't yet, so we can punt on it, but generally if you want to make your commandline tool work anywhere, you bootstrap it, with all of the code it needs to run.
--
Thanks,

Noah

anatoly techtonik

unread,
Mar 23, 2010, 1:39:56 AM3/23/10
to liten
I usually "bootstrap" my Python tools with easy_install. For
standalone Python scripts, pyftpdlib approach - everything in one
file - is the most beneficial for users. But for development, like for
Trac, it is nice to have some kind of virtual environment.

Noah Gift

unread,
Mar 23, 2010, 1:44:25 AM3/23/10
to li...@googlegroups.com
If we do actually start cranking out a bunch of code, which is sounds like people want to, we should start breaking things out into modules.  For example, the disk walking code itself, could be broken into a library. 

anatoly techtonik

unread,
Mar 23, 2010, 2:34:55 AM3/23/10
to liten
Let it be broken into a class first, or, at least, into a callback
according to my draft.

Noah Gift

unread,
Mar 23, 2010, 2:36:57 AM3/23/10
to li...@googlegroups.com
I just happened to be reading this article.  We should also use pycallgraph to figure out our bottlenecks and get the loop faster:


That loop should probably be strictly generator expressions.
Reply all
Reply to author
Forward
0 new messages