Commit 8371fe5a authored by Zixian Cai's avatar Zixian Cai

Check platform requirements in __init__.py

parent d1e9f0cf
......@@ -13,11 +13,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
import os
from pathlib import Path
from pkg_resources import resource_isdir, resource_filename
__VERSION__ = "0.0.1"
assert sys.version_info[:2] >= (3, 4), "Python 3.4+ is required."
assert os.name == "posix", "Only *nix systems are supported."
if resource_isdir(__name__, "suite"):
SUITE_DIR = Path(resource_filename(__name__, "suite"))
CALLBACKS_DIR = Path(resource_filename(__name__, "callbacks"))
......
......@@ -26,8 +26,6 @@ from mubench import __VERSION__
from mubench.frontend import frontends
from mubench.conf import settings
assert sys.version_info[:2] >= (3, 4), "Python 3.4+ is required."
LOGGING_FORMAT_DEFAULT = "[%(levelname)s] %(asctime)s %(module)s %(message)s"
logging.basicConfig(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment