Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21976
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Richard Thomas <chardster@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: setup.py for an extension |
| Date | Wed, 21 Mar 2012 00:42:19 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 8 |
| Message-ID | <13339221.934.1332315740021.JavaMail.geo-discussion-forums@ynim7> (permalink) |
| References | <jkbk99$e4c$1@speranza.aioe.org> |
| NNTP-Posting-Host | 86.30.244.2 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1332315861 4550 127.0.0.1 (21 Mar 2012 07:44:21 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Wed, 21 Mar 2012 07:44:21 +0000 (UTC) |
| In-Reply-To | <jkbk99$e4c$1@speranza.aioe.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=86.30.244.2; posting-account=JAXb_goAAAB9-y8dD9qkq0SYCvESM0V_ |
| User-Agent | G2/1.0 |
| Xref | csiph.com comp.lang.python:21976 |
Show key headers only | View raw
Assuming you have:
lib/__init__.py
lib/foo.py
lib/foo.c
Then:
from distutils.core import setup, Extension
setup(name="lib", packages=["lib"], ext_modules=[Extension("lib._foo", ["lib/foo.c"])])
Back to comp.lang.python | Previous | Next — Previous 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