473,320 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 1758
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Russell E. Owen | last post by:
At one time, mixing for x in file and readline was dangerous. For example: for line in file: # read some lines from a file, then break nextline = readline() # bad would not do what a naive...
3
by: peter leonard | last post by:
Hi, I having a problem with reading each line from a text file. For example, the file is a text file named 'test.txt' with the following content : line 1 line 2 line 3 line 4 line 5
1
by: Jian Qiu | last post by:
Hi, I tried to install python2.4.2. Unfortunately building 'readline' extension failed. Here is what I got: (It is a bit long. If you are impatient, please look at the end where it reports the...
8
by: Scott | last post by:
Hi guys, If I try to call read(), readline(), readtoend() and there is nothing to read (from a never ending loop for example) the program seems to continue but it exits the loop for no apparent...
1
by: Kevin | last post by:
In a newsgroup thread from Jan 8, 2003 between Barry Holsinger and the VBDotNet Team, please review this excerpt: "You understood my problem completely. Your sample code provides a really...
0
by: 7stud | last post by:
Hi, 1) Does this make any sense: """ Thus, the loop: for line in f: iterates on each line of the file. Due to buffering issues,
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 08:39, Akira Kitada wrote: Please post a bug report on python.org about these failures. The multiprocessing module is still fairly new and obviously needs more fine tuning for...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.