Another option is to download the source tarball for the matching python and run the setup.py within that. All the optional modules in python are built via a setup.py in the main source, so it should be possible to run that independently of the main build.
(not tested): $ cd Python-2.4.4 $ python setup.py build $ python setup.py install or copy the readline.so If that doesn't work you may have to run configure to get the compiler flags set and then run setup.py. mick On Thu, Sep 17, 2009 at 10:02, Aoife Hughes <[email protected]> wrote: > > Good thought. Unfortunately, the best match (for version 2.5.1 doesn't > quite match the version of 2.4 that's packaged with OpenSolaris (2.4.4 > - I know it's old but it's what we have)... but I'll hack away and see > how it goes. > > So, it seems there are a few mild issues I have to take care of in general: > One mild issue was that, on OpenSolaris, pycc is essentially Sun's cc, > rather than gcc, so the default flags in setup.py are bad (that was > fixed easily enough - grep is my fwiend) > > Also, this is the big one, I have an already-built version of > libreadline (installed from a 3rd party repo, but the next version of > Opensolaris will probably package it)... so I'd rather not get > setup.py rebuilding that (which it apparently tries to do), so I'd > like to point it to my existing version, and have it link from there. > Do I have to hack setup.py even more, or can I use some magic > environment variables for this? > > And as a final stumbling block (although this is easily fixable when > hacking in setup.py) we have the line reading: > platforms=['MacOS'], > as a parameter to setup() - is this likely to make a difference, or is > it metadata that's largely ignored? > > Any help is appreciated as I'm new to easy_install/setuptools/disttools. > > Cheers, > Aoife > > 2009/9/17 Rob Mason <[email protected]>: >> Do you have setup_tools installed? If so 'easy_install readline' will do. >> >> >> >> On Wed, Sep 16, 2009 at 5:43 PM, Aoife Hughes <[email protected]> >> wrote: >>> >>> Hey all, >>> >>> Quick question: Is there an easy way to compile python's readline >>> module without completely rebuilding python? >>> >>> Background: Solaris doesn't package readline by default. Well, it does >>> now (at least in the dev repositories), but their distribution of >>> python isn't built to include the readline module. So, is there any >>> way to build that module in order to drop it into python without >>> replacing the entirety of python? >>> >>> Thanks for any help ye can offer, >>> Aoife >>> >>> >> >> >> > >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Python Ireland" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.ie/group/pythonireland?hl=en -~----------~----~----~----~------~----~------~--~---
