summaryrefslogtreecommitdiff
path: root/FantomModule/setup.py
blob: 25dd1524f61f27cfb62ee016ef97fa9917580a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from distutils.core import setup, Extension
import sys

def getextensions():
    mac_ext = Extension("FantomModule",
        define_macros=[('PYFANTOM_DEBUG', '0')],    # set to '1' to print debug messges
        include_dirs=['.'],
        extra_compile_args=['-arch i386'],
        libraries=["Fantom"],
        sources=["FantomModule.cpp"]
        )
    return [mac_ext]

# install the main library
setup(name="pyfantom",
    version="0.1",
    author="Tat-Chee Wan",
    author_email="tcwan@cs.usm.my",
    url="",
    description="Python Extension to call Fantom Driver",
    long_description="Python Wrapper for Fantom Driver on Mac OS X.",
    license="GPL",
    packages=["pyfantom"],
    ext_modules=getextensions(),
    classifiers = [ "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        # Need to confirm Fantom / NI-VISA license compatibility
        # "License :: OSI Approved :: GNU General Public License (GPL)",
        # "License :: OSI Approved :: GNU General Public License v2",
        "Programming Language :: C++",
        "Topic :: Software Development :: Libraries",
        "Topic :: System :: Networking",
        "Topic :: Communications",
        "Operating System :: MacOS :: MacOS X" ]
    )