Revision df6f7c543ec4278dfda4b609caee5dc232d52e41 authored by Ryan May on 21 January 2022, 21:54:31 UTC, committed by Ryan May on 21 January 2022, 21:55:54 UTC
Need to handle the fact that with multiple artificats, they're unpacked
into a directory for each. Therefore we need steps to consolidate into
the dist/ directory.
1 parent 94ef0e0
Raw File
setup.py
# Copyright (c) 2008,2010,2015,2016,2019 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Setup script for installing MetPy."""

import sys

from setuptools import setup

if sys.version_info[0] < 3:
    error = """
    MetPy v1.1 and greater requires Python 3.7 or above.
    If you're using Python 2.7, please install MetPy v0.11.1,
    which is the last release of MetPy that supports Python 2.7,
    but it is no longer maintained.

    Python {py} detected.
    """.format(py='.'.join(str(v) for v in sys.version_info[:3]))

    print(error)  # noqa: T001
    sys.exit(1)

setup(use_scm_version={'version_scheme': 'post-release'})
back to top