From 743c10ccd5b404edc695f2db6c8693a94b85d8c1 Mon Sep 17 00:00:00 2001 From: Masood Malekghassemi Date: Tue, 16 Jun 2015 18:05:27 -0700 Subject: Cython refactor of Python C wrapping layer Also set up environment-related details needed for a smooth Cython experience: have the test script avoid rebuilding all dependencies if the virtualenv directory already exists, have the PyPI distribution script distribute the Cython generated C code rather than the .pyx files. --- tools/distrib/python/submit.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/distrib/python/submit.py') diff --git a/tools/distrib/python/submit.py b/tools/distrib/python/submit.py index dd48f440ba..a3615b3640 100755 --- a/tools/distrib/python/submit.py +++ b/tools/distrib/python/submit.py @@ -66,6 +66,12 @@ try: except: pass +# Build the Cython C files +build_env = os.environ.copy() +build_env['GRPC_PYTHON_BUILD_WITH_CYTHON'] = "1" +cmd = ['python', 'setup.py', 'build_ext', '--inplace'] +subprocess.call(cmd, cwd=pkgdir, env=build_env) + # Make the push. cmd = ['python', 'setup.py', 'sdist'] subprocess.call(cmd, cwd=pkgdir) -- cgit v1.2.3