Skip to content

Fix setup.py build#14600

Closed
ZhongRuoyu wants to merge 1 commit intoprotocolbuffers:mainfrom
ZhongRuoyu:setup.py-fix
Closed

Fix setup.py build#14600
ZhongRuoyu wants to merge 1 commit intoprotocolbuffers:mainfrom
ZhongRuoyu:setup.py-fix

Conversation

@ZhongRuoyu
Copy link

@ZhongRuoyu ZhongRuoyu commented Nov 2, 2023

In 501ecec the python/BUILD Bazel build file was introduced. On a case-insensitive filesystem (default on e.g. macOS), it conflicts with setup.py's default behaviour, which creates a build directory for build artifacts.

Fix that by renaming the BUILD file to BUILD.bazel.

@ZhongRuoyu ZhongRuoyu requested review from a team as code owners November 2, 2023 01:55
@ZhongRuoyu ZhongRuoyu requested review from acozzette and anandolee and removed request for a team November 2, 2023 01:55
In 501ecec the `python/BUILD` Bazel build file was introduced. On a
case-insensitive filesystem (default on e.g. macOS), it conflicts with
`setup.py`'s default behaviour, which creates a `build` directory for
build artifacts.

Fix that by renaming the `BUILD` file to `BUILD.bazel`.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
@acozzette acozzette added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Nov 2, 2023
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Nov 2, 2023
@acozzette
Copy link

Thank you for the pull request. There's a change we need to make internally to make this possible, so let me do that myself and I will send out a change for this.

copybara-service bot pushed a commit that referenced this pull request Nov 2, 2023
This should address the issue in #14600 by avoiding a conflict on with the
`build` directory created by setup.py on a case-insensitive filesystem.

Closes #14600.

PiperOrigin-RevId: 578859571
copybara-service bot pushed a commit that referenced this pull request Nov 2, 2023
This should address the issue in #14600 by avoiding a conflict on with the
`build` directory created by setup.py on a case-insensitive filesystem.

Closes #14600.

PiperOrigin-RevId: 578859571
copybara-service bot pushed a commit that referenced this pull request Nov 2, 2023
This should address the issue in #14600 by avoiding a conflict on with the
`build` directory created by setup.py on a case-insensitive filesystem.

Closes #14600.

PiperOrigin-RevId: 578859571
@copybara-service copybara-service bot closed this in 7e0e8ef Nov 6, 2023
acozzette pushed a commit to acozzette/protobuf that referenced this pull request Nov 6, 2023
This should address the issue in protocolbuffers#14600 by avoiding a conflict on with the
`build` directory created by setup.py on a case-insensitive filesystem.

Closes protocolbuffers#14600.

PiperOrigin-RevId: 579859556
acozzette pushed a commit that referenced this pull request Nov 6, 2023
This should address the issue in #14600 by avoiding a conflict on with the
`build` directory created by setup.py on a case-insensitive filesystem.

Closes #14600.

PiperOrigin-RevId: 579859556
@ZhongRuoyu ZhongRuoyu deleted the setup.py-fix branch November 6, 2023 23:58
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