Commit Graph

28 Commits

Author SHA1 Message Date
Akash Patel 1b8f7b1c79
fix python detection on windows (#30302) 2022-08-17 10:27:34 -07:00
Akash Patel 75841dd1e0
fix python command on windows (#28895) 2022-02-18 10:52:03 -08:00
Lidi Zheng 08bcbee487
Remove python2 from third_party/py/BUILD.tpl (#28448) 2021-12-29 14:05:42 -08:00
Jiajun Yao dbe73c9004
Replace distutils.sysconfig with sysconfig (#28392)
* Replace distutils.sysconfig with sysconfig

* Replace distutils.sysconfig with sysconfig
2021-12-29 12:23:06 -08:00
Lidi Zheng 9a593c7126
Remove Python2 from python_configure.bzl (#28406)
* Remove Python2 from python_configure.bzl

* Replace py2and3_test with py_test with PY3

* Fix typo in the bazel script
2021-12-28 10:16:14 -08:00
Anthony Bellissimo 3545d8e74f
Fix python header resolution on Windows (#26693)
The substring "\U" in the path to the Python binary was confused for a unicode escape sequence. This should be a raw string.
2021-07-16 12:51:06 -07:00
Richard Belleville 9585b032b6
Use 'python2' as default Python 2 command instead of 'python' (#26025) 2021-04-20 13:24:48 -07:00
Richard Belleville f14b8ef18b Clean up conditional 2020-10-15 16:13:20 -07:00
Richard Belleville a2b80f18b1 Fix Python 2 build 2020-10-13 14:48:45 -07:00
Richard Belleville 8949295630 Make Python2 an optional dependency 2020-10-13 14:27:34 -07:00
Yannic Bonenberger 06ecc87290 [bazel] Add fixes for --incompatible_load_proto_rules_from_bzl 2020-02-05 19:58:30 +01:00
Richard Belleville f7312a244b Add more stringent check for detection of python headers 2019-12-13 21:17:19 +00:00
Lidi Zheng 947c7b7216 Resolve conflict with master branch 2019-11-05 14:03:53 -08:00
Lidi Zheng c34bef4ca4 Format all Bazel files with buildifier 2019-11-05 14:03:52 -08:00
Marc Bury dfd3101ae0 Fix typo in python_configure.bzl 2019-10-24 02:45:33 +02:00
Richard Belleville 1444cd1dd3 Revert "Revert "Merge pull request #20097 from gnossen/dual_version_python_tests""
This reverts commit 24c562dbaa.
2019-08-29 10:51:36 -07:00
Richard Belleville 24c562dbaa Revert "Merge pull request #20097 from gnossen/dual_version_python_tests"
This reverts commit c9c847f334, reversing
changes made to 07ba4de392.
2019-08-29 10:47:44 -07:00
Richard Belleville e70788364b Make dependency on template files explicit 2019-08-28 13:50:37 -07:00
Richard Belleville a451a3a94b Rename function 2019-08-28 10:18:14 -07:00
Richard Belleville 3207e62328 Finish todo 2019-08-27 18:07:13 -07:00
Richard Belleville 426450cd82 Implement dual testing 2019-08-27 17:22:45 -07:00
Lidi Zheng eaeda3618d Check file existence correctly 2019-02-20 14:17:33 -08:00
Lidi Zheng d209deb14b Revert "Revert "Merge pull request #17644 from lidizheng/bzl-py3""
This reverts commit 7da0aacef2.
2019-02-20 14:07:34 -08:00
Eric Gribkoff 7da0aacef2 Revert "Merge pull request #17644 from lidizheng/bzl-py3"
This reverts commit a25828ad78, reversing
changes made to 5176fd80fc.
2019-01-29 13:50:16 -08:00
Lidi Zheng ee23fc3d2e Avoid 'which' failure 2019-01-28 10:47:12 -08:00
Lidi Zheng 7105626569 Pump force Python version & simplify code 2019-01-08 10:08:06 -08:00
Lidi Zheng 814c858f3f Enable Python 3 2019-01-04 18:45:01 -08:00
Naresh 3af1aaadab
Basic setup to build gRPC Python with Bazel
Building gRPC Python with Bazel has been one of the long requested
additions to gRPC (#8079). Doing so had been made complex by the fact
that Bazel itself is still in active development.

There has been extensive work on building Cython code at tensorflow,
which can be reused for gRPC's purposes as well.

Major included changes required for building grpcio with Bazel are:
- Include Cython as a third party Bazel package, to compile the Cython
parts of gRPC Python.
- Include rules for Python autoconfiguration so Python headers can be
detected by cygrpc.
2018-07-27 14:39:14 +00:00