-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from SWxTREC/windows_testing
TST: Adding Windows GitHub Actions CI
- Loading branch information
Showing
8 changed files
with
67 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
__version__ = "0.2.0" | ||
import os | ||
__version__ = "0.2.1" | ||
|
||
# If we are on Windows, Python 3.8+ then we need to add a DLL search path | ||
# The libraries are located relative to this init file. | ||
if os.name == 'nt': | ||
pymsis_dir = None | ||
pymsis_dir_libs = None | ||
try: | ||
# add folder to Windows DLL search paths | ||
pymsis_dir = os.path.abspath(os.path.dirname(__file__)) | ||
pymsis_dir_libs = os.path.join(pymsis_dir, '.libs') | ||
try: | ||
# This was added in Python 3.8, so we can default to this | ||
# once we only support 3.8+ | ||
os.add_dll_directory(pymsis_dir) | ||
# Additionally, we need the .libs directory which has gfortran | ||
os.add_dll_directory(pymsis_dir_libs) | ||
except Exception: | ||
pass | ||
os.environ['PATH'] = (f"{pymsis_dir};{pymsis_dir_libs};" | ||
f"{os.environ['PATH']}") | ||
except Exception: | ||
pass | ||
del pymsis_dir, pymsis_dir_libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters