[Twisted-Python] delivering application
Bob Ippolito
bob at redivi.com
Thu Oct 23 10:11:54 MDT 2003
On Oct 23, 2003, at 10:59 AM, Yun Mao wrote:
> Hi, suppose I have a software with GPL license, written in Python and
> used
> twisted. I want to distribute the software to a couple of people for
> test,
> and usually they don't have twisted installed. Is it leagal for me to
> make
> a package with twisted in? ( a little stupid question ;) It's a little
> hard for me to let them install separately because I slightly modified
> twisted source.
What did you modify? Chances are, it might be something we would like
to support in future versions of Twisted or it may be a case where
there is another way that does not require modification of Twisted that
we could recommend to you.
> Another concern is that twisted is becoming larger and larger. I
> actually
> only use very little of them (mainly in twisted.internet and
> twisted.python). Is there an easy way to make a small package? Thanks!
It's theoretically possible, but it's neither easy nor supported.
Twisted is only about 4 megs uncompressed, so it's likely to be far
smaller than that through gzip or bzip2.
>>> import os, stat, operator
>>> size = reduce(operator.add, [os.stat(f.strip())[stat.ST_SIZE] for f
in os.popen('find . -name "*.py"')])
>>> print size / (2.**20)
4.06226062775
-bob
More information about the Twisted-Python
mailing list