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 wafo\.libs to the DLL search path #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morbult
Copy link
Contributor

@morbult morbult commented Jun 9, 2022

The compiled Fortran extensions are placed in wafo.libs as dll files while corresponding pyd files are in the wafo root. For the pyd files to be able to locate the dlls on import we need to add their path with os.add_dll_directory(path) which is the supported way since Python 3.8. However, for me that method only works in Python 3.10. To make it work for Python<3.10, wafo.libs is also added to the PATH environment variable. Tested on Windows 10 with Python 3.6 up to 3.10.

The compiled Fortran extensions are placed in wafo\.libs as dll files while corresponding pyd files are in the wafo root. For the pyd files to be able to locate the dlls on import we need to add their path with os.add_dll_directory(path) which is the supported way since Python 3.8. However, for me that method only works in Python 3.10. To make it work for Python<3.10, wafo\.libs is also added to the PATH environment variable. Tested on Windows 10 with Python 3.6 up to 3.10.
@morbult morbult marked this pull request as ready for review June 9, 2022 17:05
@morbult
Copy link
Contributor Author

morbult commented Jun 9, 2022

Related to #47 and #43

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.

1 participant