Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21976
| From | Richard Thomas <chardster@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: setup.py for an extension |
| Date | 2012-03-21 00:42 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <13339221.934.1332315740021.JavaMail.geo-discussion-forums@ynim7> (permalink) |
| References | <jkbk99$e4c$1@speranza.aioe.org> |
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