472,127 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

ensuring GNU readline isn't used

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
3 1674
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
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
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.

Similar topics

6 posts views Thread by Russell E. Owen | last post: by
1 post views Thread by Jian Qiu | last post: by
reply views Thread by 7stud | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.