pull/10676/head
Ken Payson 8 years ago
parent 5b034e6a4f
commit ae5ca1b447
  1. 4
      setup.py
  2. 4
      src/python/grpcio/commands.py

@ -194,9 +194,7 @@ def cython_extensions_and_necessity():
cython_module_files = [os.path.join(PYTHON_STEM,
name.replace('.', '/') + '.pyx')
for name in CYTHON_EXTENSION_MODULE_NAMES]
config = os.environ['CONFIG']
if config is None:
config = 'opt'
config = os.environ.get('CONFIG', 'opt')
prefix = 'libs/' + config + '/'
if "darwin" in sys.platform:
extra_objects = [prefix + 'libares.a',

@ -267,9 +267,7 @@ class BuildExt(build_ext.build_ext):
def build_extensions(self):
if "darwin" in sys.platform:
config = os.environ['CONFIG']
if config is None:
config = 'opt'
config = os.environ.get('CONFIG', opt)
target_path = os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)),
'..', '..', '..', 'libs', config))

Loading…
Cancel
Save