diff --git a/pyhector/__init__.py b/pyhector/__init__.py index 37f5de9..41df788 100644 --- a/pyhector/__init__.py +++ b/pyhector/__init__.py @@ -22,6 +22,7 @@ import numpy as np import pandas as pd +from . import _version from ._binding import __hector_version__ # noqa: F401 # pylint: disable=E0611 from ._binding import _Hector # pylint: disable=no-name-in-module from .default_config import _default_config @@ -29,8 +30,6 @@ from .output import output from .units import units -from . import _version - __version__ = _version.get_versions()["version"] diff --git a/setup.py b/setup.py index cc47b6c..a2b582c 100644 --- a/setup.py +++ b/setup.py @@ -17,11 +17,10 @@ import os import sys +from pybind11.setup_helpers import Pybind11Extension from setuptools import setup from setuptools.command.test import test as TestCommand -from pybind11.setup_helpers import Pybind11Extension - import versioneer path = os.path.abspath(os.path.dirname(__file__))