-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
cleaner: remove RECORD and modify INSTALLER #16866
Conversation
I guess the concern is relocation can happen in literally any text file, including any There are most drastic measures: https://salsa.debian.org/python-team/tools/dh-python/-/commit/b369c028b398f8893b7fd94f2a0cb67e34e26ad0. In the end, interfacing Homebrew-provided Python packages with pip isn't really supported - you should manage them via
And perhaps replace
|
I'll go ahead and just delete Changing
|
According to [Python specification][1], we should remove `RECORD` file to prevent changes to installed formula files via other tools, e.g. pip. This also improves chances of generating an `all` bottle as it avoids diff due to checksums of HOMEBREW_PREFIX present files. Also modify `INSTALLER` file to indicate that brew is managing the Python package. [1]: https://packaging.python.org/en/latest/specifications/recording-installed-packages/#intentionally-preventing-changes-to-installed-packages Signed-off-by: Michael Cho <michael@michaelcho.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks again @cho-m! |
EDIT: Updated contents to match latest commit
According to Python specification, we should remove
RECORD
fileto prevent changes to installed formula files via other tools, e.g. pip.
This also improves chances of generating an
all
bottle as it avoidsdiff due to checksums of HOMEBREW_PREFIX present files. Also modify
INSTALLER
file to indicate that brew is managing the Python package.brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?