Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21968
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| 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 | Wed, 21 Mar 2012 04:09:14 +0000 |
| Organization | Aioe.org NNTP Server |
| Lines | 24 |
| Message-ID | <jkbk99$e4c$1@speranza.aioe.org> (permalink) |
| NNTP-Posting-Host | mnXjenq5nb6DVl1Hn9PzNQ.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120305 Thunderbird/10.0.1 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.python:21968 |
Show key headers only | View raw
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