By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,551 Members | 1,159 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,551 IT Pros & Developers. It's quick & easy.

ensuring GNU readline isn't used

P: n/a
Is there a way to ensure that GNU readline isn't used (even though
support may have been compiled in?). I'm experiencing a licensing
problem, I'd like to use the "cmd" module, for example, but my code is
proprietary and hence, if cmd uses readline, I can't use cmd.
Unfortunately, I can't control if the Python interpreter my customers
may be using has readline compiled in. So, I'm wondering if there is
anyway to tell Python libraries like "cmd" to not use GNU's readline?

Alternatively, could we just include pyreadline as readline instead?

--
Thanks,

Josh Paetzel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQFGuGfaJvkB8SevrssRAqc3AKCITz2Ov+J1n86GbGqM6j M+z1zfYwCgkEMN
9gVjACByjivtOfhRu+wgbeQ=
=3oip
-----END PGP SIGNATURE-----

Aug 7 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Josh Paetzel <jo**@tcbug.orgwrote:
Is there a way to ensure that GNU readline isn't used (even though
support may have been compiled in?). I'm experiencing a licensing
problem, I'd like to use the "cmd" module, for example, but my code is
proprietary and hence, if cmd uses readline, I can't use cmd.
I think you have misread the GPL: just because your non-GPL code *can* be
used with something covered by the GPL doesn't mean your code is infected
by the GPL. Your code doesn't require a GPL module to run (you can use a
version of cmd compiled without readline), and you aren't attempting to
distribute it with a GPL module, so you don't need to care how the end user
chooses to run it.

Aug 7 '07 #2

P: n/a
Duncan Booth <du**********@invalid.invalidwrites:
Josh Paetzel <jo**@tcbug.orgwrote:
>Is there a way to ensure that GNU readline isn't used (even though
support may have been compiled in?). I'm experiencing a licensing
problem, I'd like to use the "cmd" module, for example, but my code is
proprietary and hence, if cmd uses readline, I can't use cmd.

I think you have misread the GPL: just because your non-GPL code *can* be
used with something covered by the GPL doesn't mean your code is infected
by the GPL. Your code doesn't require a GPL module to run (you can use a
version of cmd compiled without readline), and you aren't attempting to
distribute it with a GPL module, so you don't need to care how the end user
chooses to run it.
Indeed -- I recall coming across some commercial control &
data-acquisition software which was distributed with an inferior
readline work-alike library, but came with detailed instructions for
how to use GNU readline instead. All users who had the time and good
sense presumably linked with readline proper.
John
Aug 7 '07 #3

P: n/a
Josh Paetzel <jo**@tcbug.orgwrites:
Is there a way to ensure that GNU readline isn't used (even though
support may have been compiled in?). I'm experiencing a licensing
problem
Note that the GPL (the license terms of readline) is like any other
valid copyright license in that it only restricts acts covered by
copyright. You have no responsibility to prevent others from using a
GPL-covered work.

Anyone may use a GPL-covered work they receive for any purpose without
further permission; nobody needs a copyright license for that (despite
what some copyright holders might prefer). Copyright covers acts of
copying and distribution, so you *do* need license to do those things
with someone's work.
but my code is proprietary
That's unfortunate. I hope you can fix that.
and hence, if cmd uses readline, I can't use cmd.
Not true; you can derive from and redistribute cmd, so long as you
comply with the license on cmd.

--
\ "What I have to do is see, at any rate, that I do not lend |
`\ myself to the wrong which I condemn." -- Henry Thoreau, _Civil |
_o__) Disobedience_ |
Ben Finney
Aug 8 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.