forked from Unidata/MetPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (17 loc) · 713 Bytes
/
setup.py
File metadata and controls
23 lines (17 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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 v0.12 and greater requires the Python 3.6 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'})