Ticket #6117: setup.py

File setup.py, 465 bytes (added by artur_spruce@…, 19 years ago)

Test extension module - build script

Line 
1from distutils.core import setup, Extension
2
3module1 = Extension('spam',
4                    #libraries = ['boost_python'],
5                    #library_dirs = ['/opt/local/lib'],
6                    sources = ['spammodule.c'])
7
8# Uncomment libraries and library_dirs in the above to reproduce the problem
9# with incorrect linking.
10
11setup (name = 'Spam module',
12       version = '1.0',
13       description = 'This is a demo package',
14       ext_modules = [module1])