[Skencil-devel] More build issues

Adam Williamson awilliamson at mandriva.com
Mon May 7 04:55:49 CEST 2007


Hey, guys.

I thought I'd roll up my sleeves and see if I could hack Skencil to put
stuff in the right places.

The attached patch to setup.py results in stuff getting installed in the
right places, more or less. The .py and .so files go
to /usr/lib/python2.5/site-packages/skencil-{version}, and other stuff -
all static data files like font definitions, images etc - go
to /usr/share/skencil-{version}. It has a few obvious shortcuts: it's
not x86-64 safe (it installs stuff to /usr/lib whatever arch it's on)
and python2.5 is written into it because I'm not a hacker so I have no
idea how to make it check the python version. I tried 'python
%(pyversion)' since that variable seems to be used somewhere else in
setup.py, but that resulted in everything getting installed to a
directory really named "/usr/lib/python%(pyversion)", so that's not
it ;) The python thing should be very easy for a real coder to fix, the
x86-64 safety thing would come as a result of overhauling the whole
build process to be x86-64 aware.

The bigger problem, obviously, is that once all this stuff is changed,
Skencil doesn't work any more. It seems to be written only for the case
that all of Skencil's files are installed in one place, so of course it
breaks with the patch. I guess all that would be needed would be some
changes to config.py , but I'm not smart enough to make them. I think
this should also be quite easy for a real coder.

Well, anyway, I thought after complaining I should at least roll up my
sleeves and do what I could! hope this hacky effort is at least a
stimulus for someone to fix stuff properly. :)

I should note again that the 'standard' build process in recent versions
of python appears to cover all this stuff. At least, browsing the python
docs site, I see pages like
http://docs.python.org/inst/alt-install-windows.html which indicate that
the modern python installation process understands the basic concepts of
installing 'pure' modules to /usr/lib/site-packages , 'non-pure' modules
to /usr/lib{64}/site-packages , scripts to /usr/bin and static date
to /usr/share.
-- 
adamw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_install.patch
Type: text/x-patch
Size: 2985 bytes
Desc: not available
Url : http://lists.wald.intevation.org/pipermail/skencil-devel/attachments/20070506/e0c95db0/test_install.bin


More information about the Skencil-devel mailing list