protobuf: fix missing google.protobuf.compiler

This commit is contained in:
Daiderd Jordan 2018-08-17 01:35:17 +02:00
parent d8b202698c
commit 8bef91d84a
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -28,7 +28,10 @@ buildPythonPackage rec {
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2
''; '';
preBuild = optionalString (versionAtLeast protobuf.version "2.6.0") '' preBuild = ''
# Workaround for https://github.com/google/protobuf/issues/2895
${python}/bin/${python.executable} setup.py build
'' + optionalString (versionAtLeast protobuf.version "2.6.0") ''
${python}/bin/${python.executable} setup.py build_ext --cpp_implementation ${python}/bin/${python.executable} setup.py build_ext --cpp_implementation
''; '';