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

Link against python explicitly in order to make MSVS builds work #1192

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

vasil-pashov
Copy link
Collaborator

@vasil-pashov vasil-pashov commented Jan 2, 2024

Reference Issues/PRs

What does this implement or fix?

MSVS builds fail because they can't find python. We get Python as transitive dependency via pybind11, however debug MSVS builds (by default) require all dependencies to be build in debug and pybind11's python is in release. Thus adding explicit linkage will use the library found via find_package.

Any other comments?

Debug python symbols can be installed via python installer.
While having debug python is nice the binary becomes huge and it takes quite a lot of time to load the DLL. In future we should add option to work with release python in MSVS.

Checklist

Checklist for code changes...
  • Have you updated the relevant docstrings, documentation and copyright notice?
  • Is this contribution tested against all ArcticDB's features?
  • Do all exceptions introduced raise appropriate error messages?
  • Are API changes highlighted in the PR description?
  • Is the PR labelled as enhancement or bug so it appears in autogenerated release notes?

@vasil-pashov vasil-pashov force-pushed the dev/vasil.pashov/fix-msvs-builds branch from 4ba4e33 to 38e4531 Compare January 2, 2024 14:12
@vasil-pashov vasil-pashov force-pushed the dev/vasil.pashov/fix-msvs-builds branch from 38e4531 to bef81bc Compare January 2, 2024 14:41
@vasil-pashov vasil-pashov merged commit 479554f into master Jan 3, 2024
130 checks passed
@vasil-pashov vasil-pashov deleted the dev/vasil.pashov/fix-msvs-builds branch January 3, 2024 09:23
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.

2 participants