Skip to content
Snippets Groups Projects
Commit ae5ca1b4 authored by Ken Payson's avatar Ken Payson
Browse files

Fixes

parent 5b034e6a
No related branches found
No related tags found
No related merge requests found
...@@ -194,9 +194,7 @@ def cython_extensions_and_necessity(): ...@@ -194,9 +194,7 @@ def cython_extensions_and_necessity():
cython_module_files = [os.path.join(PYTHON_STEM, cython_module_files = [os.path.join(PYTHON_STEM,
name.replace('.', '/') + '.pyx') name.replace('.', '/') + '.pyx')
for name in CYTHON_EXTENSION_MODULE_NAMES] for name in CYTHON_EXTENSION_MODULE_NAMES]
config = os.environ['CONFIG'] config = os.environ.get('CONFIG', 'opt')
if config is None:
config = 'opt'
prefix = 'libs/' + config + '/' prefix = 'libs/' + config + '/'
if "darwin" in sys.platform: if "darwin" in sys.platform:
extra_objects = [prefix + 'libares.a', extra_objects = [prefix + 'libares.a',
......
...@@ -267,9 +267,7 @@ class BuildExt(build_ext.build_ext): ...@@ -267,9 +267,7 @@ class BuildExt(build_ext.build_ext):
def build_extensions(self): def build_extensions(self):
if "darwin" in sys.platform: if "darwin" in sys.platform:
config = os.environ['CONFIG'] config = os.environ.get('CONFIG', opt)
if config is None:
config = 'opt'
target_path = os.path.abspath( target_path = os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)), os.path.join(os.path.dirname(os.path.realpath(__file__)),
'..', '..', '..', 'libs', config)) '..', '..', '..', 'libs', config))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment