Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set more build-flags in setup.pys #7314

Merged
merged 1 commit into from
Jul 14, 2016
Merged

Conversation

soltanmm
Copy link
Contributor

Removes MinGW flags from build_python.sh script, since they're now set in our setup.pys by default. Also removes the arguments for the extensions in grpcio's setup.py; that function was already accessing globals anyway, might as well go whole-hog.

Needs some portability tests ran on Jenkins.

@soltanmm
Copy link
Contributor Author

And by portability, I mean the artifact build portability. Not the portability tests that we run on Jenkins. Nomenclature is hard.

@soltanmm
Copy link
Contributor Author

@soltanmm
Copy link
Contributor Author

Hm, looks like a GRPC_PYTHON_BUILD_WITH_CYTHON flag thing snuck into this PR. Feel free to demand it be in a different commit or PR.

if EXTRA_ENV_LINK_ARGS is None:
EXTRA_ENV_LINK_ARGS = '-lpthread'
if 'win32' in sys.platform:
# TODO(atash) check if this is actually safe to just import and call on
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that that distutils.cygwinccompiler is a pure python module that exists on all distributions.

get_msvcr() returns None on Linux, but I think it makes sense to only call get_msvcr() within an if 'win32' in sys.platform block

@soltanmm
Copy link
Contributor Author

Running through with another artifact build... The previous one may be stale.

Removes MinGW flags from various build scripts, since they're now set in
our `setup.py`s by default. Also removes the arguments for the
extensions in grpcio's setup.py; that function was already accessing
globals anyway, might as well go whole-hog.
@soltanmm
Copy link
Contributor Author

Kicking portability tests...

@kpayson64
Copy link
Contributor

LGTM

@kpayson64 kpayson64 merged commit 1198da0 into grpc:master Jul 14, 2016
@soltanmm soltanmm deleted the spinning-flags branch July 14, 2016 21:12
@lock lock bot locked as resolved and limited conversation to collaborators Jan 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants