which python
/usr/bin/python
python --version
python 2.5.1
opensuse version 10.3
i have a first_wrap.c file and i created a setup file as below.
#!/usr/bin/env python
"""
setup.py file for SWIG example
"""
from distutils.core import setup, Extension
first = Extension(
'_first',
sources = [
'first_wrap.c'
]
)
setup (name = 'first',
version = '0.1',
author = "Pradeesh",
description = """First programme""",
ext_modules = [first],
py_modules = ["firstastro","firstastroutils","firstswecls"],
)
i build and install this setup file and the _first.so got created.
Please let me know if you require any more information.
Last edited by pradeeshnarayan; 05-14-2011 at 06:26 AM.
|