Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21968
| From | Paulo da Silva <p_s_d_a_s_i_l_v_a@netcabo.pt> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | setup.py for an extension |
| Date | 2012-03-21 04:09 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <jkbk99$e4c$1@speranza.aioe.org> (permalink) |
Hi all. I have a python extension (bindings for a C lib - no swig) and I would like to write a setup.py to build a source distribution pack. The extension consists of 3 files: foo.h foo.c foo.py that are placed in a eclipse directory /home/<user>/ECLIPSE/workspace/ext/src foo.h+foo.c are to be compiled into _foo.so shared lib. _foo.so is itself a module only called from foo.py. The dir I wrote the setup.py is any arbitrary dir. I don't want to put packaging stuff into the eclipse source. I read the docs but have no idea on how to do this. Some tentatives I did completely failed. Any help? Thanks in advance.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
setup.py for an extension Paulo da Silva <p_s_d_a_s_i_l_v_a@netcabo.pt> - 2012-03-21 04:09 +0000 Re: setup.py for an extension Richard Thomas <chardster@gmail.com> - 2012-03-21 00:42 -0700
csiph-web