File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,13 +18,18 @@ def _single_compile(obj):
1818 return objects
1919import distutils .ccompiler
2020distutils .ccompiler .CCompiler .compile = parallelCCompile
21-
21+ from distutils import sysconfig
2222from setuptools import setup , Extension
2323import os
2424import subprocess
2525import sys
2626
27- os .environ ["OPT" ] = ""
27+ cflags = sysconfig .get_config_var ('CFLAGS' )
28+ sysconfig ._config_vars ['CFLAGS' ] = cflags .replace (' -g ' , ' ' ).replace (' -Os ' , ' ' )
29+ opt = sysconfig .get_config_var ('OPT' )
30+ sysconfig ._config_vars ['OPT' ] = opt .replace (' -g ' , ' ' ).replace (' -Os ' , ' ' )
31+ ldshared = sysconfig .get_config_var ('LDSHARED' )
32+ sysconfig ._config_vars ['LDSHARED' ] = ldshared .replace (' -g ' , ' ' ).replace (' -Os ' , ' ' )
2833
2934if os .environ .get ("MASON_BUILD" , "false" ) == "true" :
3035 # run bootstrap.sh to get mason builds
@@ -164,6 +169,7 @@ def _single_compile(obj):
164169 'src/mapnik_view_transform.cpp' ,
165170 'src/python_grid_utils.cpp' ,
166171 ],
172+ language = 'c++' ,
167173 libraries = [
168174 'mapnik' ,
169175 'mapnik-wkt' ,
You can’t perform that action at this time.
0 commit comments