Skip to content

error: option --cpp_implementation not recognized #12390

@adamjstewart

Description

@adamjstewart

What version of protobuf and what language are you using?

Version: 4.22.1
Language: Python

What operating system (Linux, Windows, ...) and version?

OS: macOS (arm64)
Version: 13.3

What runtime / compiler are you using (e.g., python version or gcc version)

Python: 3.10.10
Compiler: Apple Clang 14.0.3

What did you do?

Steps to reproduce the behavior:

$ wget https://files.pythonhosted.org/packages/source/p/protobuf/protobuf-4.22.1.tar.gz
$ tar xzf protobuf-4.22.1.tar.gz 
$ cd protobuf-4.22.1/
$ python setup.py build --cpp_implementation

What did you expect to see

I expected to build the C++ implementation, as documented in the README. This used to work fine in protobuf 4.21.

What did you see instead?

The --cpp_implementation flag seems to no longer be valid:

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --cpp_implementation not recognized

Anything else we should know about your project / environment

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions