Skip to content

Miscellaneous pip fixes #3158

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

Merged
merged 8 commits into from
Oct 1, 2021
Merged

Miscellaneous pip fixes #3158

merged 8 commits into from
Oct 1, 2021

Conversation

coolreader18
Copy link
Member

Fix pip warnings about inconsistency between distutils' sysconfig and the actual sysconfig; fix error when installing package it would say something like __env_pip__.zip is not a file

@coolreader18 coolreader18 force-pushed the pip-warnings branch 2 times, most recently from 46f5732 to 32aa7d4 Compare September 30, 2021 22:04
@@ -66,6 +66,10 @@ path = "src/main.rs"
[profile.dev.package."*"]
opt-level = 3

[profile.test]
opt-level = 3
Copy link
Member

@youknowone youknowone Oct 1, 2021

Choose a reason for hiding this comment

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

doesn't this obfuscate backtrace and debug information?
how do you think about running tests with release build job if this is desired?

Copy link
Member Author

Choose a reason for hiding this comment

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

It should still keep debug info I'm pretty sure - the default for test enables debuginfo and I'm pretty sure it's orthogonal to opt-level: https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#test

Copy link
Member

Choose a reason for hiding this comment

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

When opt-level is not 0, the inlined callstacks are omitted, the progress is not linear to the code and some breakpoint doesn't work.

Copy link
Member

Choose a reason for hiding this comment

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

I think the default development environment is better to be friendly to programmers unless there are unavoidable reasons

@coolreader18 coolreader18 merged commit b38ce3d into main Oct 1, 2021
@coolreader18 coolreader18 deleted the pip-warnings branch October 1, 2021 18:34
@fanninpm
Copy link
Contributor

fanninpm commented Oct 1, 2021

13 unexpected successes from a test that wasn't in the codebase when you opened this — sounds like another reason for bors.

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