Skip to content

Commit

Permalink
Update version and add windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcarreras committed Apr 26, 2022
1 parent 110a775 commit d74868b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [ test_code ]
# if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
name: Build source distribution
needs: [ test_code ]
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand Down
16 changes: 13 additions & 3 deletions cosymlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
__version__ = '0.10.6'
__version__ = '0.10.7'

# Windows support
import os
import sys

extra_dll_dir = os.path.join(os.path.dirname(__file__), '.libs')
if sys.platform == 'win32' and os.path.isdir(extra_dll_dir):
if sys.version_info >= (3, 8):
os.add_dll_directory(extra_dll_dir)
else:
os.environ.setdefault('PATH', '')
os.environ['PATH'] += os.pathsep + extra_dll_dir

from cosymlib.molecule import Molecule
from cosymlib.molecule.geometry import Geometry
Expand All @@ -15,8 +27,6 @@

import matplotlib.pyplot as plt
import numpy as np
import sys
import os


def _get_symmetry_arguments(locals):
Expand Down

0 comments on commit d74868b

Please sign in to comment.