wxPython compilation and dependency issue

Hi,

I am not a hardcore linux user and so far I have only used ubuntu. I
have developed a python/wxPython application which I would like
package and distribute. The problem with packaging tools such as
pyinstaller and cx_freeze is that you have to compile the bootloader
first. Now If I compile the loader on karmic 9.10, the binary would
suffer from compatibility issue. In other words I won't be able to
execute the app on a lower version such as ubuntu 8.04.4 LTS.

The solution is to use as much as old libc as you can to compile the
bootloader. The easiest way I can think of is to use a distribution
which older but still actively in development and I am planning to
CentOS-3.

Is this going to be a issue with wxPython also? What are the minimum
requirements (glibc version etc.) in order to successfully installed
wxPython on a linux compatible platform. Do I have to compile wxPython
on CentOS-3? I think CentOS-3 is based on gcc 2.3.

While solving this issue I came to know about LSB(Linux Standard Base)
and I think If wxPython can be compiled using lsb instead of gcc then
it would solve the issue of binary dependency. am I right?

Please let me know if there are other issues that one might face for
similar situations.

Cheers

Prashant

Best regards

Hi,

I am not a hardcore linux user and so far I have only used ubuntu. I
have developed a python/wxPython application which I would like
package and distribute. The problem with packaging tools such as
pyinstaller and cx_freeze is that you have to compile the bootloader
first. Now If I compile the loader on karmic 9.10, the binary would
suffer from compatibility issue. In other words I won't be able to
execute the app on a lower version such as ubuntu 8.04.4 LTS.

The solution is to use as much as old libc as you can to compile the
bootloader. The easiest way I can think of is to use a distribution
which older but still actively in development and I am planning to
CentOS-3.

Is this going to be a issue with wxPython also?

Yes. There are binary extension modules in wxPython, and probably in some other 3rd-party modules you may also be using.

What are the minimum
requirements (glibc version etc.) in order to successfully installed
wxPython on a linux compatible platform. Do I have to compile wxPython
on CentOS-3? I think CentOS-3 is based on gcc 2.3.

I think that I remember that gcc 2.x had some problems that manifested in wx builds, so you may want to update to a version of the distro with at least a 3.x version of gcc. wxGTK requires at least GTK+ 2.6 but works better with 2.8 or later, so that can be another deciding factor for which distro to move back to. The glibc requirements will be whatever the chosen version of GTK+ and its dependent libraries require.

While solving this issue I came to know about LSB(Linux Standard Base)
and I think If wxPython can be compiled using lsb instead of gcc then
it would solve the issue of binary dependency. am I right?

LSB is not a compiler. It is a set of platform standards that linux distros can conform to and claim compliance with. See: lsb:start [Wiki]. At least some of the distros accomplish this by making extra packages available that can install the things needed for this compliance. As far as I know there hasn't been any work done with wxWidgets specifically for LSB, but I think I've read on mail lists that others have used wx in LSB environments.

···

On 4/13/10 5:10 AM, King wrote:

--
Robin Dunn
Software Craftsman