"Fossies" - the Fresh Open Source Software Archive

Member "scalpel-2.0/tre-0.7.5-win32/python/setup.py" (20 Apr 2011, 1544 Bytes) of archive /linux/misc/scalpel-2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "setup.py" see the Fossies "Dox" file reference documentation.

    1 # setup.py - Builds and installs the TRE Python language bindings module
    2 #
    3 # Copyright (c) 2004-2006 Nikolai SAOUKH <nms+python@otdel-1.org>
    4 #
    5 #
    6 # This library is free software; you can redistribute it and/or
    7 # modify it under the terms of the GNU Lesser General Public
    8 # License as published by the Free Software Foundation; either
    9 # version 2.1 of the License, or (at your option) any later version.
   10 #
   11 # This library is distributed in the hope that it will be useful,
   12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   14 # Lesser General Public License for more details.
   15 #
   16 # You should have received a copy of the GNU Lesser General Public
   17 # License along with this library; if not, write to the Free Software
   18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
   19 
   20 from distutils.core import setup, Extension
   21 import sys
   22 from glob import glob
   23 from os.path import normpath
   24 import re
   25 
   26 def ospath(fl):
   27     return [normpath(f) for f in fl]
   28 
   29 VERSION = "0.7.5"
   30 
   31 SOURCES = ["tre-python.c"]
   32 
   33 INCDIRS = ospath(["..", "../lib"])
   34 
   35 setup(
   36     name = "tre",
   37     version = VERSION,
   38     description = "Python module for TRE",
   39     author = "Nikolai SAOUKH",
   40     author_email = "nms+python@otdel-1.org",
   41     license = "LGPL",
   42     url = "http://laurikari.net/tre/",
   43     ext_modules = [
   44         Extension(
   45             "tre",
   46         SOURCES,
   47         include_dirs = INCDIRS,
   48             define_macros = [("HAVE_CONFIG_H", None)],
   49         libraries=["tre"]
   50     ),
   51     ],
   52 )