Yurttas/PL/SL/python/docs/core-python-programming/doc/20/ext/distributing.html

Revision as of 19:37, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<div class="navigation"> {| width="100%" cellspacing="2" align="center" | yurttas/PL/SL/python/docs/core-python-programming/doc/20/ext/module-defn-example.html|[[Image:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


2.4 Distributing your extension modules

When distributing your extension modules in source form, make sure to include a Setup file. The Setup file should be named Setup.in in the distribution. The make file make file, Makefile.pre.in, will copy Setup.in to Setup. Distributing a Setup.in file makes it easy for people to customize the Setup file while keeping the original in Setup.in.

It is a good idea to include a copy of Makefile.pre.in for people who do not have a source distribution of Python.

Do not distribute a make file. People building your modules should use Makefile.pre.in to build their own make file. A README file included in the package should provide simple instructions to perform the build.

Work is being done to make building and installing Python extensions easier for all platforms; this work in likely to supplant the current approach at some point in the future. For more information or to participate in the effort, refer to http://www.python.org/sigs/distutils-sig/  ] on the Python Web site.


See About this document... for information on suggesting changes.