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

Fix Loading DLL on Windows Python >=3.8 #197

Merged
merged 3 commits into from
Apr 3, 2020
Merged

Fix Loading DLL on Windows Python >=3.8 #197

merged 3 commits into from
Apr 3, 2020

Conversation

aiudirog
Copy link
Member

@aiudirog aiudirog commented Apr 3, 2020

As discussed in #193, Python 3.8 no longer searches the PATH for DLLs on Windows and instead looks in standard locations. I've updated the Windows compatibility handling to account for this and use the new os.add_dll_directory() when possible.

I also modified the tests to at least make sure the library can be imported on systems that we can't test on. This would have failed the 3.8 build last release and caught the issue earlier.

@aiudirog
Copy link
Member Author

aiudirog commented Apr 3, 2020

Annnnnd the testing requirements aren't installed on the ones we don't run tests on (-‸ლ)

Edit: nope, that's not the issue: decorator isn't in the testing requirements. Something must be pulling it in for the other distros.

Copy link
Member

@frozencemetery frozencemetery left a comment

Choose a reason for hiding this comment

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

Few nits inline. If you could move the decorator commit to be first in the series, that would be appreciated - then CI never stops working.

gssapi/_win_config.py Show resolved Hide resolved
gssapi/_win_config.py Outdated Show resolved Hide resolved
.travis/build.sh Outdated Show resolved Hide resolved
@aiudirog
Copy link
Member Author

aiudirog commented Apr 3, 2020

I figured you would squash the commits like you did for the previous PR so the commit order wouldn't matter. I'll push with new commits in that order.

@frozencemetery frozencemetery merged commit b95c263 into pythongssapi:master Apr 3, 2020
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