-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
19 lines (15 loc) · 749 Bytes
/
setup.py
File metadata and controls
19 lines (15 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Setup script for rite package.
This setup.py is provided for backward compatibility with tools that don't
support pyproject.toml yet. The canonical build configuration is in pyproject.toml.
"""
# Pylint struggles to resolve setuptools in some environments; keep a safe import
try: # type: ignore
# Import | Libraries
from setuptools import setup # pylint: disable=import-error
except ImportError: # pragma: no cover
# Minimal fallback to make static analyzers happy; runtime should have setuptools
def setup(**_kwargs): # type: ignore
raise RuntimeError("setuptools is required to build this package")
# Read dependencies from pyproject.toml is handled by setuptools
# when using PEP 517/518 build backend
setup()