473,545 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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)

iD8DBQFGuGfaJvk B8SevrssRAqc3AK CITz2Ov+J1n86Gb GqM6jM+z1zfYwCg kEMN
9gVjACByjivtOfh Ru+wgbeQ=
=3oip
-----END PGP SIGNATURE-----

Aug 7 '07 #1
3 1772
Josh Paetzel <jo**@tcbug.org wrote:
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**********@i nvalid.invalidw rites:
Josh Paetzel <jo**@tcbug.org wrote:
>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.org writes:
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
4895
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 user might expect because the file iterator buffered data and readline did not read from that buffer. Hence the call to readline might unexpectedly...
3
8691
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
4401
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 warning.) building 'readline' extension gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-strict-aliasing -I....
8
17307
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 reason. We also can't check the stream for the length, as the network stream doesn't support seek operations
1
5178
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 elegant way to inject CrLf into the input stream, which effectively unblocks the ReadLine method. Last night, I had finally got the WriteConsoleInput
0
4710
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
2434
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 _sqlite3 _tkinter gdbm linuxaudiodev spwd sunaudiodev
0
1511
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 the large set of platforms on which Python can run. However, please also note that FreeBSD4 is a rather old version of that OS. FWIW: Python 2.6...
0
1928
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 math, mmap and readline modules, that worked fine before, cannot be built anymore.
0
7453
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7390
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7742
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5318
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3436
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1007
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
692
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.