コード例 #1
0
ファイル: setup.py プロジェクト: koffie/mdsage
 def run(self):
     try:
         from sagemath.check_version import check_version
         check_version(sage_required_version)
     except ImportError:
         print("WARNING sagemath not installed, not checking version")
     build_module.build.run(self)
コード例 #2
0
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

    The authors can be reached at: [email protected] and
    [email protected].

    ====================================================================

"""

try:
    from sagemath.check_version import check_version

    check_version(">=9.4")
except ModuleNotFoundError as err:
    raise RuntimeError("""
        Not all requirements of Isogeny Primes are installed. Please do
            sage -pip install -r requirements.txt
        Before continuing.
        """) from ModuleNotFoundError

from .monkey_patch_sage import monkey_patch

monkey_patch()
コード例 #3
0
 def run(self):
     from sagemath.check_version import check_version
     check_version(sage_required_version)
     build_module.build.run(self)
コード例 #4
0
ファイル: setup.py プロジェクト: mmasdeu/darmonpoints
 def run(self):
     from sagemath.check_version import check_version
     check_version(sage_required_version)
     build_module.build.run(self)