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

Add call to find_library #2

Merged
merged 2 commits into from Feb 14, 2020
Merged

Conversation

xylar
Copy link
Contributor

@xylar xylar commented Feb 14, 2020

This helps Windows find jigsaw.dll without a full path name.

A similar call seems not to be needed for Linux and not to work for OSX.

I created a patch identical to this in the conda-forge recipe:
conda-forge/staged-recipes@b8d1bc4

This seems to be necessary, at least for conda-forge CI.
@xylar xylar requested a review from dengwirda February 14, 2020 21:28
Copy link
Owner

@dengwirda dengwirda left a comment

Choose a reason for hiding this comment

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

Okay, no problem. Can we change that new line to

JLIBNAME = Path(
    ctypes.util.find_library("jigsaw.dll"))

just so that jlibname is always a Path object after the if block, regardless of the os...

I've checked this on my Windows + Linux machines, and this seems to work fine. I don't really understand how it was working for me on win before this change though.

@xylar
Copy link
Contributor Author

xylar commented Feb 14, 2020

Sure, done!

I don't really understand how it was working for me on win before this change though.

It may be something specific about the conda-build environment. I'm really not sure. I don't use Windows enough to want to find out more, to be honest.

@dengwirda dengwirda merged commit 77ee95f into dengwirda:master Feb 14, 2020
@xylar xylar deleted the add_find_library branch June 30, 2020 11:24
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.

None yet

2 participants