@@ -20,7 +20,7 @@ otel_collector_version=0.130.0
20
20
otel_collector_package_url=" https://github.com/open-telemetry/" \
21
21
" opentelemetry-collector-releases/releases/download/" \
22
22
" v${otel_collector_version} /otelcol-contrib_${otel_collector_version} _linux_amd64.deb"
23
- venv= $PWD /venv
23
+
24
24
25
25
sudo apt update
26
26
sudo apt install -y git curl wget make gcc g++ zlib1g-dev libssl-dev \
@@ -31,36 +31,12 @@ rm otel_collector_package.deb
31
31
sudo cp otel-config.yaml /etc/otelcol-contrib/config.yaml
32
32
sudo systemctl restart otelcol-contrib
33
33
34
- if [[ ! -d confluent-kafka-python ]]; then
35
- git clone https://github.com/confluentinc/confluent-kafka-python
36
- fi
37
-
38
- pushd confluent-kafka-python
39
-
40
- git checkout $python_branch
41
-
42
- echo " Installing librdkafka $librdkafka_branch "
43
- tools/bootstrap-librdkafka.sh --require-ssl $librdkafka_branch /usr
44
- rm -rf tmp-build
45
-
46
- # echo "Installing interceptors"
47
- # tools/install-interceptors.sh
34
+ ./build.sh $librdkafka_branch $python_branch
48
35
49
- echo " Setting up virtualenv in $venv "
50
- if [[ ! -d $venv ]]; then
51
- python3 -m venv $venv
52
- fi
36
+ venv=$PWD /venv
53
37
source $venv /bin/activate
54
-
55
- pip install -U pip
56
-
57
- pip install -v .[soaktest]
58
-
59
- popd # ..python
60
-
61
38
echo " Verifying python client installation"
62
39
python -c " import confluent_kafka; print(confluent_kafka.version(), confluent_kafka.libversion())"
63
-
64
40
deactivate
65
41
66
42
echo " All done, activate the virtualenv in $venv before running the client:"
0 commit comments