File: setup.py.in

package info (click to toggle)
openpace 1.1.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,392 kB
  • sloc: ansic: 17,468; sh: 4,516; makefile: 568; python: 499; java: 182; ruby: 46
file content (43 lines) | stat: -rw-r--r-- 1,578 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
#!@PYTHON@

"""
setup.py file for OpenPACE wrapper
"""
from distutils.core import setup, Extension
import shlex

#The following variables are set by autotools at build-time
OPENPACE_LIBS = '@OPENPACE_LIBS@'
OPENPACE_CFLAGS = '@OPENPACE_CFLAGS@'
CRYPTO_LIBS = '@CRYPTO_LIBS@'
CRYPTO_CFLAGS = '@CRYPTO_CFLAGS@'
CFLAGS = '@CFLAGS@'
CPPFLAGS = '@CPPFLAGS@'
LIBS = '@LIBS@'

all_libs = shlex.split(LIBS + ' ' + OPENPACE_LIBS + ' ' + CRYPTO_LIBS)
all_cflags = shlex.split(CPPFLAGS + ' ' + CFLAGS + ' ' + OPENPACE_CFLAGS + ' ' + CRYPTO_CFLAGS)

#Prepare the external module that we want to build
eac_module = Extension('_eac',
                           sources=['eac.i'],
                           swig_opts=['-modern', '-outdir', '@builddir@', '-I@srcdir@/..'],
                           extra_compile_args=all_cflags,
                           extra_link_args=all_libs,
                          )

#Setup Distutils
setup (name         = '@PACKAGE_NAME@',
       version      = '@PACKAGE_VERSION@',
       author       = "Dominik Oepen",
       author_email = "oepen@informatik.hu-berlin.de",
       url          = "@PACKAGE_URL@",
       description  = """Python wrapper for @PACKAGE_NAME@""",
       classifiers  = [ 'Intended Audience :: Developers',
                        'Operating System :: POSIX',
                        'License :: OSI Approved :: GNU General Public License (GPL)',
                        'Operating System :: POSIX :: Linux',
                      ],
       ext_modules  = [eac_module],
       py_modules   = ['eac', 'chat', 'pace_entity'],
      )