Skip to content

Clean up the protobuf installation.#33

Open
fruffy wants to merge 2 commits intop4lang:mainfrom
fruffy:simplify_protobuf
Open

Clean up the protobuf installation.#33
fruffy wants to merge 2 commits intop4lang:mainfrom
fruffy:simplify_protobuf

Conversation

@fruffy
Copy link
Copy Markdown
Contributor

@fruffy fruffy commented Dec 8, 2022

WiP: The protobuf installation is needlessly complicated and might cause more issues than it actually solves. Try to simplify it.

It might also make sense to just use Ubuntu's supplied protobuf and grpc. Even though they are older, they will be more consistent with the base system we are using (Ubuntu 20.04).

Dockerfile Outdated
RUN export PYTHON3_VERSION=`python3 -c 'import sys; version=sys.version_info[:3]; print("python{0}.{1}".format(*version))'` && \
cd /output/usr/local/lib/$PYTHON3_VERSION/site-packages&& \
cat *.pth | grep -v "import sys" | sort -u > docker_protobuf.pth
RUN pip3 install --user protobuf==3.18.1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the intent here was to install the package from source using the checked out repo (hence why the workdir is set to /protobuf/python/). Not sure how important that is, or whether it can be done without a complex workaround.

@fruffy fruffy force-pushed the simplify_protobuf branch from 7665a10 to de46638 Compare December 9, 2022 22:11
@fruffy fruffy marked this pull request as ready for review December 9, 2022 22:15
@fruffy fruffy marked this pull request as draft December 9, 2022 22:15
@fruffy fruffy force-pushed the simplify_protobuf branch from 632ab9c to 753f6d8 Compare December 9, 2022 22:21
@fruffy
Copy link
Copy Markdown
Contributor Author

fruffy commented Dec 9, 2022

Trying to get CI to run... does the workflow have to be approved?

@antoninbas
Copy link
Copy Markdown
Member

Closing to see if it triggers the Github workflow when I re-open the PR

@antoninbas antoninbas closed this Dec 9, 2022
@antoninbas antoninbas reopened this Dec 9, 2022
@antoninbas antoninbas marked this pull request as ready for review December 9, 2022 23:02
@antoninbas
Copy link
Copy Markdown
Member

maybe some transient issue, we can see if it resolves itself by Monday

@fruffy fruffy force-pushed the simplify_protobuf branch from 753f6d8 to 00ad514 Compare April 12, 2023 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants