-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (19 loc) · 792 Bytes
/
setup.py
File metadata and controls
27 lines (19 loc) · 792 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
25
26
27
# SPDX-FileCopyrightText: 2024-2025 ModelCloud.ai
# SPDX-FileCopyrightText: 2024-2025 qubitium@modelcloud.ai
# SPDX-License-Identifier: Apache-2.0
# Contact: qubitium@modelcloud.ai, x.com/qubitium
from pathlib import Path
from setuptools import find_namespace_packages, find_packages, setup
def _package_version() -> str:
version_vars: dict[str, str] = {}
exec(Path("gptqmodel/version.py").read_text(encoding="utf-8"), {}, version_vars)
return version_vars["__version__"]
packages = find_packages(exclude=("tests", "tests.*"))
for package_name in find_namespace_packages(include=("gptqmodel_ext.*",)):
if package_name not in packages:
packages.append(package_name)
setup(
version=_package_version(),
packages=packages,
include_package_data=True,
)