From 6d1565c97529a1c689211d633e156b8353568f68 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Fri, 17 Jun 2022 14:24:12 +0100 Subject: [PATCH] Update init.py --- bilby/__init__.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/bilby/__init__.py b/bilby/__init__.py index a9e8a5ddc..263273dc8 100644 --- a/bilby/__init__.py +++ b/bilby/__init__.py @@ -24,29 +24,5 @@ from .core import utils, likelihood, prior, result, sampler from .core.sampler import run_sampler from .core.likelihood import Likelihood -__version__ = utils.get_version_information() - - -if sys.version_info < (3,): - raise ImportError( -"""You are running bilby >= 0.6.4 on Python 2 - -Bilby 0.6.4 and above are no longer compatible with Python 2, and you still -ended up with this version installed. That's unfortunate; sorry about that. -It should not have happened. Make sure you have pip >= 9.0 to avoid this kind -of issue, as well as setuptools >= 24.2: - - $ pip install pip setuptools --upgrade - -Your choices: - -- Upgrade to Python 3. - -- Install an older version of bilby: - - $ pip install 'bilby<0.6.4' - -""") - from . import _version __version__ = _version.get_versions()['version'] -- GitLab