LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   wxPython foolproof build from source script (http://www.linuxquestions.org/questions/linux-software-2/wxpython-foolproof-build-from-source-script-476502/)

SittingInFrontOfPC 08-23-2006 04:25 AM

wxPython foolproof build from source script
 
Everytime I upgrade to a new Fedora core I
get round to installing from source wxPython
run into problems. Does anyone have a
foolproof script that doesn't require me
to add *any* options.

./configure
make
make install
cd wxPython
python config.py
python setup.py build
python setup.py install

This never works, doesn't have Unicode
enabled, doesn't seem to remove old failed
installations.

I've started searching for replacements
to wxPython because it's so annoying to get working.

I haven't got unicode, or the extra stc
or whatever weren't installed, or I have
a hundred slightly different shared libraries
hanging around. I don't want to know this
snarfus I just want to get on and program.

Arghhhh ldconfig!

cs-cam 08-23-2006 05:49 AM

Surely wxPython is in the FC repositories somewhere? 'yum install wxpython' would be my foolproof guess.

titopoquito 08-23-2006 06:11 AM

If you really want to install it yourself instead of using a precompiled package: Type "./configure --help" -- there should be many switches you could use like --enable-monolithic or --enable-unicode ... Save your commands in a seperate script file and use it as a build script.

I don't know how to package a RPM file, but you can save the build files in a seperate folder to package them. This way you can install/uninstall better. "python setup.py build install --root=/path/to/package-folder" as an substitution for your last two lines should do this IMHO.

cs-cam 08-23-2006 06:41 AM

There is a way to build an RPM straight from the Python setup.py. Check setup.py --help for how to do it.

SittingInFrontOfPC 08-25-2006 05:17 PM

wxPython has too many gimmicks. Compiling
against different python versions. Unicode
or not, widgets to be installed. Monolithic
or not. I'm a end user programmer I need a
standard setup, yum works for my connected
computer, but my offline 'never to be connected'
often cutting edge fedora core needs stability.
Define the standard and have the build scripts
run to that standard, like it used to be!
./configure
make
make install
python setup.py install

titopoquito 08-26-2006 05:01 AM

I had to use "--enable-config" to compile vlc from source, else it complained. The rest I left unchanged (didn't know either how to finetune configure).

SittingInFrontOfPC 08-26-2006 10:45 PM

Seems wxPython is tied to the version of python.
Even ungrading from 2.4.2 to 2.4.3 will trash
wxPython with segment faults. Have to reinstall
wxGTK or something. Don't know, don't care.
Looking for a different widget set. :-(


All times are GMT -5. The time now is 12:13 PM.