Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output_path field to pyoxidizer_binary and change its default destination (Cherry-pick of #14607) #14611

Merged
merged 3 commits into from Feb 25, 2022

Conversation

Eric-Arellano
Copy link
Contributor

Closes #14565.

Before: build/aarch64-apple-darwin/debug/install/bin
After: src.python/bin/aarch64-apple-darwin/debug/install/bin

As explained on the ticket, we get rid of build/ because it was noisy.

We also need to add a prefix to the directory so that when you have multiple pyoxidizer_binary targets, there's no risk of overwriting each other. It's a bummer this causes a longer path, but correctness is more important.

We don't mess with PyOxidizer's platform and {debug,release} folders, as considered in #14565. We decided it's too magical and could cause issues for users who want it.

[ci skip-rust]
[ci skip-build-wheels]

… destination (pantsbuild#14607)

Closes pantsbuild#14565.

Before: `build/aarch64-apple-darwin/debug/install/bin`
After: `src.python/bin/aarch64-apple-darwin/debug/install/bin`

As explained on the ticket, we get rid of `build/` because it was noisy.

We also need to add a prefix to the directory so that when you have multiple `pyoxidizer_binary` targets, there's no risk of overwriting each other. It's a bummer this causes a longer path, but correctness is more important.

We don't mess with PyOxidizer's platform and {debug,release} folders, as considered in pantsbuild#14565. We decided it's too magical and could cause issues for users who want it.

[ci skip-rust]
[ci skip-build-wheels]
@Eric-Arellano
Copy link
Contributor Author

The changes to package.py weren't clean, so I deleted them. They were only style changes.

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano merged commit 25d59ee into pantsbuild:2.10.x Feb 25, 2022
@Eric-Arellano Eric-Arellano deleted the cp-pyoxy-path branch February 25, 2022 04:28
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.

None yet

2 participants