-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
24 lines (19 loc) · 665 Bytes
/
Copy pathsetup.py
File metadata and controls
24 lines (19 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3
"""Compatibility entrypoint for editable installs and legacy build commands.
Recommended modern build command:
uv run python -m build
Legacy-compatible alternatives:
python setup.py bdist_wheel
python setup.py sdist
"""
try:
from setuptools import setup
except ModuleNotFoundError as exc:
raise SystemExit(
"setuptools is required for legacy setup.py commands.\n"
"Recommended: uv run python build_package.py\n"
"Alternative: uv run python -m build\n"
"Legacy: python -m pip install setuptools wheel && python setup.py bdist_wheel"
) from exc
if __name__ == "__main__":
setup()