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

Bug 1597714 - Build for release when assembling Python release #1002

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

badboy
Copy link
Member

@badboy badboy commented Jun 23, 2020

As a first step to reduce the size of the library we ship this switches the Python build to contain the release builds.

I think this works. Controlling it through an environment variable used by the Makefile seemed easy enough, additionally the Python setup script can read the same one.
For the Windows builds we're calling cargo directly, so we just pass --release directly.

We might lose some more readable stacktraces in case of bugs (but I guess so far we haven't received any of those anyway?)

@badboy badboy requested a review from mdboom June 23, 2020 15:40
@auto-assign auto-assign bot requested a review from Dexterp37 June 23, 2020 15:40
@badboy badboy removed the request for review from Dexterp37 June 23, 2020 15:51
Copy link
Contributor

@mdboom mdboom left a comment

Choose a reason for hiding this comment

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

Yeah -- the ability to get nice backtraces was just theoretical, along the lines of "if it breaks for our users, it would be nice for them not to have to set up a full Rust environment to get a backtrace". But it's never actually been needed.

r+wc

Let's add a CHANGELOG entry for this, just in case it ends up having an unexpected impact (it shouldn't).

glean-core/python/setup.py Outdated Show resolved Hide resolved
@badboy badboy force-pushed the use-release-for-python branch from 688e327 to f2df415 Compare June 23, 2020 16:27
@badboy badboy requested a review from mdboom June 23, 2020 16:47
@badboy badboy force-pushed the use-release-for-python branch 2 times, most recently from 97f491a to 9727b1b Compare June 23, 2020 16:52
@badboy badboy force-pushed the use-release-for-python branch from 9727b1b to 742fa84 Compare June 24, 2020 08:04
@badboy
Copy link
Member Author

badboy commented Jun 24, 2020

Guess #987 landed. Repushing.

@badboy badboy merged commit 6ecc5f3 into mozilla:main Jun 24, 2020
@badboy badboy deleted the use-release-for-python branch June 24, 2020 08:22
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.

3 participants