mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-23 04:39:59 +00:00
Fixes setup.py to use the defined CFLAGS
Python bindings will be re-build with its distutils script to get private module built against all supported python versions. Let's fix setup.py to use the defined CFLAGS.
This commit is contained in:
parent
57ff044fb7
commit
080bcf1783
@ -1,5 +1,5 @@
|
|||||||
#! /usr/bin/python
|
#! /usr/bin/python
|
||||||
# $Id: setup.py,v 1.7 2012/02/13 20:58:57 nanard Exp $
|
# $Id: setup.py,v 1.8 2012/03/05 04:54:00 nanard Exp $
|
||||||
# the MiniUPnP Project (c) 2007-2012 Thomas Bernard
|
# the MiniUPnP Project (c) 2007-2012 Thomas Bernard
|
||||||
# http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/
|
# http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/
|
||||||
#
|
#
|
||||||
@ -7,6 +7,9 @@
|
|||||||
#
|
#
|
||||||
# replace libminiupnpc.a by libminiupnpc.so for shared library usage
|
# replace libminiupnpc.a by libminiupnpc.so for shared library usage
|
||||||
from distutils.core import setup, Extension
|
from distutils.core import setup, Extension
|
||||||
|
from distutils import sysconfig
|
||||||
|
sysconfig.get_config_vars()["OPT"] = ''
|
||||||
|
sysconfig.get_config_vars()["CFLAGS"] = ''
|
||||||
setup(name="miniupnpc", version="1.6",
|
setup(name="miniupnpc", version="1.6",
|
||||||
ext_modules=[
|
ext_modules=[
|
||||||
Extension(name="miniupnpc", sources=["miniupnpcmodule.c"],
|
Extension(name="miniupnpc", sources=["miniupnpcmodule.c"],
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
#! /usr/bin/python
|
#! /usr/bin/python
|
||||||
# $Id: setupmingw32.py,v 1.6 2012/02/13 20:58:57 nanard Exp $
|
# $Id: setupmingw32.py,v 1.7 2012/03/05 04:54:00 nanard Exp $
|
||||||
# the MiniUPnP Project (c) 2007-2012 Thomas Bernard
|
# the MiniUPnP Project (c) 2007-2012 Thomas Bernard
|
||||||
# http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/
|
# http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/
|
||||||
#
|
#
|
||||||
# python script to build the miniupnpc module under windows (using mingw32)
|
# python script to build the miniupnpc module under windows (using mingw32)
|
||||||
#
|
#
|
||||||
from distutils.core import setup, Extension
|
from distutils.core import setup, Extension
|
||||||
|
from distutils import sysconfig
|
||||||
|
sysconfig.get_config_vars()["OPT"] = ''
|
||||||
|
sysconfig.get_config_vars()["CFLAGS"] = ''
|
||||||
setup(name="miniupnpc", version="1.6",
|
setup(name="miniupnpc", version="1.6",
|
||||||
ext_modules=[
|
ext_modules=[
|
||||||
Extension(name="miniupnpc", sources=["miniupnpcmodule.c"],
|
Extension(name="miniupnpc", sources=["miniupnpcmodule.c"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user