
December 16th, 2012, 09:26 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 1
Time spent in forums: 3 m 26 sec
Reputation Power: 0
|
|
|
Learning to compile a C extension (linux/newb)
I want to learn how to play with this code package because I ultimately want to compile it for Python 3.x
GIT: github.com/engla/keybinder
tarball: kaizer.se/publicfiles/keybinder/keybinder-3.0-0.3.0.tar.gz
homepage: kaizer.se/wiki/keybinder/
But I am super confused as to how the Python part of the compilation works. I've been trying for about 2 straight days now (minus sleep) attempting to figure it out. But so many files get generated by various tools like autoconfig. The Python specific files seems to be located here hgithub.com/engla/keybinder/tree/master/python-keybinder but some of those files don't even look like C or Python. It seems like when you run the configure script for the entire package there is a file named _keybinder.c which gets generated, and I think that is the file that ultimately gets compiled, and I have tried creating my own setup.py file for it but I must be missing certain library links.
I wish I knew how to take the data which is there, create my own keybinder.c file and my own setup.py script so that I can modify and re-compile specifically the Python/C extension. But at this point, I have no idea how what is in this package becomes a .so file in /usr/local/lib/python2.7/dist-packages/ that I can and have successfully experimented with.
The closest I have gotten I think think is this C file: pastebin.com/raw.php?i=CuqhsSHK
and this setup.py file: pastebin.com/raw.php?i=hNtAEy8q
There is a lot here, and I don't expect that anyone will do this work for me, besides, I want to learn how anyway after all this effort, but I'd highly appreciate some direction. I feel like what I'm trying to accomplish would take some one in the know 2 minutes not two days but I'm sitting here randomly trying stuff hoping that it will work.
Thank You.
|