(file) Return to setup.py CVS log (file) Jump to this file's LXR Page (dir) Up to [CENS] / emstar / fusd / python

File: [CENS] / emstar / fusd / python / setup.py (download) / (as text)
Revision: 1.1, Thu Jun 19 19:09:09 2003 UTC (6 years, 5 months ago) by jelson
Branch: MAIN
CVS Tags: scale_radio_channel, rdd_alpha_version_1, pregeonet, nims-lab-Sep07-2004, nims-jr-Sep05-04, mote, lessgps_release, kiss_release, fusd_with_no_daemon, fusd-1_10, copyright-07-11-03, bp_scale_radio_channel, audio_server, acoustic-05-18-06, ROUTING_EXPERIMENTAL, PRE_TOSNIC_FIX, PRE_NOMEGA_MOTENIC, PRE_MOTENIC_CLEANUP, PRE_CEILING_FIX, PRE_64BIT, MOTENIC_PRE_BUGFIX_20050415, LESSGPS_1_00, LAURA_CALIBRATION_EXPERIMENTS, KISS_1_0, HOSTMOTE_V_6_EXPERIMENTAL, HOSTMOTE_PROTOCOL_VERSION_7, HOSTMOTE_PROTOCOL_VERSION_6_WITH_HOSTMOAP, HOSTMOTE_PROTOCOL_VERSION_5_WITH_HOSTMOAP, HOSTMOTE_PROTOCOL_VERSION_5, HOSTMOTE_PROTOCOL_VERSION_4, HOSTMOTE_PROTOCOL_VERSION_3, HEAD, ESS_RELEASE_3_5, ESS_RELEASE_3_4, ESS_RELEASE_3_3, ESS_RELEASE_3_2, ESS_RELEASE_3_1, ESS_RELEASE_3_0, ESS_RELEASE_2_0, ESS_CONNECTIVITY, ESS_CENTROUTE_TESTING, ESS2-CMS-V1_5_pretest, ESS2-CMS-V1_4cMergeSympathy_2, ESS2-CMS-V1_4c, ESS2-CMS-V1_4b, ESS2-CMS-V1_4a, ESS2-CMS-V1_3, ESS2-CMS-V1_2, ESS2-CMS-V1_1, ESS2-CMS-V1_0, EMSTAR_RELEASE_2_5, EMSTAR_RELEASE_2_1_BRANCH, EMSTAR_RELEASE_2_1, EMSTAR_RELEASE_2_0_beta1, EMSTAR_RELEASE_2_0, EMSTAR_RELEASE_1_3_2, EMSTAR_RELEASE_1_3_1, EMSTAR_RELEASE_1_3, EMSTAR_RELEASE_1_2, EMSTAR_RELEASE_1_1, EMSTAR_RELEASE_1_0, EMSTAR_PRE_HTML, CYCLOPS_RELEASE_CANDIDATE_2_0, CYCLOPS_PRERELEASE_STABLE, CENTROUTE_EMSTAR_SOCKETS, BG_1_0, BANGLADESH_ARSENIC_1_2, BANGLADESH_ARSENIC_1_1, AMARSS_JR_DEPLOYMENT_6_05_07
Added first version of FUSD Python bindings from Brian Warner

#! /usr/bin/python

from distutils.core import setup, Extension
import commands, os


# fusd's build process puts the library in a directory that depends upon the
# host system's 'uname' output
cpu_name = commands.getoutput("uname -m")
os_name = commands.getoutput("uname -s | tr '[A-Z]' '[a-z]'")
archdir = "../obj.%s-%s" % (cpu_name, os_name)

# if we are building in fusd/python/, get the include file and library from
# the local tree. If not, hope that they've been installed into /usr/include
# and /usr/lib or somewhere else on the compiler's search path.

library_dirs = []
if os.path.isdir(archdir):
    library_dirs = [archdir]
include_dirs = []
if os.path.isdir("../include"):
    include_dirs = ["../include"]

setup(name="fusd",
      version="1",
      description="interface to FUSD (linux user-space device drivers)",

      py_modules = ['fusd'],
      ext_modules=[ Extension("_fusd", ["fusdmodule.c"],
                              include_dirs=include_dirs,
                              libraries=["fusd"],
                              library_dirs=library_dirs,
                              )
                    ],
      )

CENS CVS Mailing List
Powered by
ViewCVS 0.9.2