Move python install location from sitelib to sitearch

Todd Zullinger tmz at pobox.com
Sat Mar 1 05:39:41 UTC 2008


Douglas E. Warner wrote:
> Thanks; I had found that in gpsd's Makefile.in it was installing to
> pythondir instead of pyexecdir; I replaced the occurrences and
> things look a lot better.

That's a good way to work around the upstream autotools setup.
Ideally this should be fixed upstream of course, which means making
some changes at least to Makefile.am.

I'll hit you up offlist and see if I can help craft a reasonable patch
that can be sent upstream.

(I meant to send this yesterday, but forgot.  In the interim, I did
make a patch to change the python build process.  If there are any
autotools gurus interested in mocking it and teaching me a few things,
it's here: http://tmz.fedorapeople.org/tmp/gpsd-python-autotools.diff
I'd enjoy hearing what I screwed up the most.

I believe that the simplest fix would have been to just replace
python_PYTHON with pyexec_PYTHON, but I just didn't care for the way
the module was being built using a setup.py's build_ext.  I also added
a configure check for Python.h, which upstream was lacking.  I even
fixed the included gpsd.spec.in, which had a comment blaming
autoconfig for putting the python files in /usr/lib even on 64 bit
systems. :)  Hence the larger patch that removes setup.py and touches
a few more files.)

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So I don't get hurt?!  That's the best you can come up with you
dull-witted termagant!
    -- Stewie Griffin, on why he needs a car seat

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080301/97c08399/attachment.sig>


More information about the fedora-devel-list mailing list