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

Avoiding bezier.dll name collision on Windows. #190

Merged
merged 6 commits into from
Jan 30, 2020
Merged

Avoiding bezier.dll name collision on Windows. #190

merged 6 commits into from
Jan 30, 2020

Conversation

dhermes
Copy link
Owner

@dhermes dhermes commented Jan 22, 2020

Does so by renaming bezier.dll to include the first 8 characters of the SHA256 hash of the file.

Fixes #189.

"""Hash the contents of an open file handle with SHA256"""
hash_obj = hashlib.sha256()

with open(filename, "rb") as file_obj:
Copy link
Owner Author

Choose a reason for hiding this comment

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

@dhermes
Copy link
Owner Author

dhermes commented Jan 22, 2020

OK, the issue (among other things) is that bezier.lib refers to bezier.dll, so even if we rename it to bezier-a92f001b.lib, it still points to bezier.dll rather than bezier-a92f001b.dll

@dhermes
Copy link
Owner Author

dhermes commented Jan 22, 2020

Luckily the inimitable @njsmith has created https://github.com/njsmith/machomachomangler for this exact use case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename bezier.dll with hash to avoid name collision.
1 participant