File: setup.py

package info (click to toggle)
libnatpmp 20150609-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 300 kB
  • sloc: ansic: 1,430; java: 312; makefile: 150; python: 23
file content (18 lines) | stat: -rw-r--r-- 616 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /usr/bin/python
# $Id: setup.py,v 1.3 2012/03/05 04:54:01 nanard Exp $
#
# python script to build the libnatpmp module under unix
#
# replace libnatpmp.a by libnatpmp.so for shared library usage
from distutils.core import setup, Extension
from distutils import sysconfig
sysconfig.get_config_vars()["OPT"] = ''
sysconfig.get_config_vars()["CFLAGS"] = ''
setup(name="libnatpmp", version="1.0",
      ext_modules=[
        Extension(name="libnatpmp", sources=["libnatpmpmodule.c"],
                  extra_objects=["libnatpmp.so"],
                  define_macros=[('ENABLE_STRNATPMPERR', None)]
        )]
     )