[3party] Update protobuf to v4.23.4

Signed-off-by: Andrew Shkrob <andrew.shkrob.social@yandex.by>
This commit is contained in:
Andrew Shkrob 2023-07-16 19:03:21 +02:00 committed by Viktor Govako
parent e256a119ab
commit ac01664b98
5 changed files with 59 additions and 1101 deletions

1
README
View file

@ -1 +0,0 @@
Kothic Mapcss parser/processor tailored for Organic Maps use.

9
README.md Normal file
View file

@ -0,0 +1,9 @@
Kothic Mapcss parser/processor tailored for Organic Maps use.
Dependencies:
* Python >= 3.8
Python dependencies:
```bash
pip3 install -r requirements.txt
```

1
requirements.txt Normal file
View file

@ -0,0 +1 @@
protobuf~=4.23.0

File diff suppressed because it is too large Load diff

View file

@ -2,12 +2,12 @@ from mapcss import MapCSS
from optparse import OptionParser
import os
import csv
import sys
import functools
from itertools import chain
from multiprocessing import Pool, set_start_method
from collections import OrderedDict
import mapcss.webcolors
from drules_struct_pb2 import *
whatever_to_hex = mapcss.webcolors.webcolors.whatever_to_hex
whatever_to_cairo = mapcss.webcolors.webcolors.whatever_to_cairo
@ -15,17 +15,6 @@ whatever_to_cairo = mapcss.webcolors.webcolors.whatever_to_cairo
PROFILE = False
MULTIPROCESSING = True
# If path to the protobuf EGG is specified then apply it before import drules_struct_pb2
PROTOBUF_EGG_PATH = os.environ.get("PROTOBUF_EGG_PATH")
if PROTOBUF_EGG_PATH:
# another version of protobuf may be installed, override it
for i in range(len(sys.path)):
if -1 != sys.path[i].find("protobuf-"):
sys.path[i] = PROTOBUF_EGG_PATH
sys.path.append(PROTOBUF_EGG_PATH)
from drules_struct_pb2 import *
WIDTH_SCALE = 1.0
# Priority values defined in *.prio.txt files are adjusted