Staging
v0.5.1
https://github.com/python/cpython
Revision 4941774f59ae808a764e29e09abfedf6fc199ed3 authored by Nick Coghlan on 02 August 2012, 13:03:58 UTC, committed by Nick Coghlan on 02 August 2012, 13:03:58 UTC
1 parent e3376ef
Raw File
Tip revision: 4941774f59ae808a764e29e09abfedf6fc199ed3 authored by Nick Coghlan on 02 August 2012, 13:03:58 UTC
Issue #15502: Bring the importlib.PathFinder docs and docstring more in line with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue
Tip revision: 4941774
setup.py
# This is an example of a distutils 'setup' script for the example_nt
# sample.  This provides a simpler way of building your extension
# and means you can avoid keeping MSVC solution files etc in source-control.
# It also means it should magically build with all compilers supported by
# python.

# USAGE: you probably want 'setup.py install' - but execute 'setup.py --help'
# for all the details.

# NOTE: This is *not* a sample for distutils - it is just the smallest
# script that can build this.  See distutils docs for more info.

from distutils.core import setup, Extension

example_mod = Extension('example', sources = ['example.c'])


setup(name = "example",
    version = "1.0",
    description = "A sample extension module",
    ext_modules = [example_mod],
)
back to top