Граф коммитов

32 Коммитов

Автор SHA1 Сообщение Дата
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
Michael Berlin 44a74cd4f7 travis/install_grpc.sh: Fix system wide installation.
This type of installation is used when generating the bootstrap images.

The variable "PIP" was not defined. We recently changed that script to allow for binaries "pip2" on systems where Python 3 is the default.
2017-03-29 20:58:36 -07:00
Alex Charis f14c0586fc Second effort at selecting python2 on all systems. 2017-02-14 13:39:41 -05:00
acharis 3a5949bb9c Use python2 binaries during bootstrap if they exist.
This fixes the problem that Arch Linux defaults /usr/bin/python to python3 and not python2.

See https://www.python.org/dev/peps/pep-0394/ for details.
2017-02-10 13:32:07 -08:00
Alain Jobart 62d68cc0fd Better comments for pip update. 2017-01-27 08:44:57 -08:00
Alain Jobart 8ac06792c7 Upgrading pip when installing gRPC grpcio. (#2510)
Seems dependent packages now need it.
2017-01-26 16:31:16 -08:00
Michael Berlin bc331e56ff grpc: Clarify when we can remove the macOS workaround again. 2016-10-07 17:11:32 -07:00
Rasta 90fd05ab4e Fix for OSX Sierra build of Protobuf bundled with Grpc 2016-10-08 00:23:44 +02:00
Anthony Yeh 313d926f89 Update to gRPC 1.0.0 and protobuf 3.0.0. (#2012) 2016-09-23 11:41:17 -07:00
Rasta 07ec6c95da OSX compatibility with grpc 0.13 integration 2016-03-05 09:25:42 +01:00
Michael Berlin 1805ce20f4 bootstrap: Force upgrade of python "six" package for system-wide installation.
Fixes issue in Debian Jessie.

Removed force upgrade of "virtualenv" because the current version is good enough.

make docker_bootstrap passes after this change.
2016-03-02 23:09:36 -08:00
Michael Berlin ce4239f84a bootstrap: Pin protobuf python dependency to 3.0.0a3.
Fixes the following error seen in Travis:

  TypeError: __init__() got an unexpected keyword argument 'syntax'
2016-03-02 21:44:28 -08:00
Michael Berlin c7459278cb travis/install_grpc: Remove unnecessary commands.
It is no longer necessary to set the different PATHs.

Additionally, I moved the prepand_path function out to tools/shell_functions.inc.
2016-03-01 22:38:23 -08:00
Michael Berlin 58e72c1a9c bootstrap: Do no longer install gRPC Python dependencies manually.
Since gRPC 0.13, the gRPC Python install process takes care of downloading python modules like "six" or "google.protobuf".

The new install process also no longer requires "tox", hence we dropped that dependency as well.

This commit also fixes the issue which was introduced in commit 938f31743d.

When we changed the install command flag for protobuf python from --root to --prefix, a system wide python package would always trump the locally installed version. Due to that, we could no longer run the e2e tests on our desktops. Since we no longer manually install protobuf python, this issue goes away. Before I had that solution, I did some analysis why the system wide version gets imported instead of the local version.

If --prefix is used, protobuf python is installed as an .egg file in the "site-packages" directory.

If --root is used, the .py files are copied to the "dist-packages" directory instead.

For unknown reasons, the .egg file in "site-packages" was not used when calling "import google.protobuf".

Here's what it looked like:

--prefix: (not working)

$ python -v
>>> import google.protobuf
[...]
import google # loaded from Zip /home/mberlin/workspace/vitess/dist/grpc/usr/local/lib/python2.7/site-packages/protobuf-3.0.0b2-py2.7-linux-x86_64.egg/google/__init__.pyc
import google.protobuf # directory /usr/lib/python2.7/dist-packages/google/protobuf
import google.protobuf # precompiled from /usr/lib/python2.7/dist-packages/google/protobuf/__init__.pyc
>>>

--root: (working)

$ python -v
>>> import google.protobuf
import google.protobuf # directory /home/mberlin/workspace/vitess/dist/grpc/usr/local/lib/python2.7/dist-packages/google/protobuf
import google.protobuf # precompiled from /home/mberlin/workspace/vitess/dist/grpc/usr/local/lib/python2.7/dist-packages/google/protobuf/__init__.pyc
>>>
2016-03-01 22:38:23 -08:00
Anthony Yeh 3f2d479a9a docker/bootstrap: Build gRPC PHP plugin from gRPC sources.
The pecl build isn't always up-to-date with the gRPC version we use.
2016-02-27 02:31:07 -08:00
Anthony Yeh 938f31743d Update to gRPC 0.13. 2016-02-27 02:31:03 -08:00
Rasta 5504ab1263 OS X compatibility with Grpc 0.12 2016-01-31 19:45:54 +01:00
Anthony Yeh 85e4dabe63 php: Update grpc dependency to 0.12. 2016-01-26 01:17:37 -08:00
Anthony Yeh bdc670039e bootstrap: Run parallel make. 2016-01-25 16:01:09 -08:00
Alain Jobart 2035a3fb0d Moving 'six' package into gRPC install, as it's not white-listed for travis. 2016-01-25 08:39:08 -08:00
Alain Jobart 9929569e88 Update scripts for latest grpc, 0.12.
Note we now use the gRPC protobuf submodule for install,
to be sure its version matches gRPC.
2016-01-22 13:29:46 -08:00
Alain Jobart 2a2cdb5937 Update grpc build from 0.11.0 to 0.11.1. Seems like there is no impact. 2015-11-09 13:14:59 -08:00
Alain Jobart 582b093440 Adding comment for gRPC version. 2015-09-11 12:54:57 -07:00
Alain Jobart 318af78ad6 Switching to beta versions of protobuf and grpc.
Fixing python clients to work.
2015-09-11 11:55:54 -07:00
Alain Jobart 4538a917bc New version of protobuf / grpc libraries. 2015-08-18 11:39:43 -07:00
Alain Jobart 5a11631d7d Updating gRPC to 0.9.1.
Updating protobuf to v3.0.0-alpha-2 (to match gRPC's version)

Now the python vtctl client works as expected (!!!).
Also splitting up go and python vtctl client implementations
(will be used inside google3).
2015-07-06 11:54:04 -07:00
Ammar Aijazi f1e524adb3 Pin gRPC to a known working version 2015-06-11 22:33:41 -07:00
Michael Berlin 53f959f6a6 Fix installing gRPC if it's not installed system wide. 2015-05-01 16:31:05 -07:00
Alain Jobart 45f1ebb316 The version I used didn't work, and there is no tagged version later.
Reverting to fixing the install.
2015-03-26 14:04:59 -07:00
Alain Jobart a1009ba84a Fix git command. 2015-03-26 10:27:39 -07:00
Alain Jobart d854ea5d7c Fixing the version of grpc to a well-known working version. 2015-03-26 09:26:42 -07:00
Alain Jobart 9e3caff5cf Fixing the scripts to build grpc and protobuf better.
Docker and travis: build and install as root in /
2015-03-12 09:06:23 -07:00