ยปCore Development>Code coverage>PC/example_nt/setup.py

Python code coverage for PC/example_nt/setup.py

#countcontent
1n/a# This is an example of a distutils 'setup' script for the example_nt
2n/a# sample. This provides a simpler way of building your extension
3n/a# and means you can avoid keeping MSVC solution files etc in source-control.
4n/a# It also means it should magically build with all compilers supported by
5n/a# python.
6n/a
7n/a# USAGE: you probably want 'setup.py install' - but execute 'setup.py --help'
8n/a# for all the details.
9n/a
10n/a# NOTE: This is *not* a sample for distutils - it is just the smallest
11n/a# script that can build this. See distutils docs for more info.
12n/a
13n/afrom distutils.core import setup, Extension
14n/a
15n/aexample_mod = Extension('example', sources = ['example.c'])
16n/a
17n/a
18n/asetup(name = "example",
19n/a version = "1.0",
20n/a description = "A sample extension module",
21n/a ext_modules = [example_mod],
22n/a)