bitsandbytes-rocm/setup.py

37 lines
1.1 KiB
Python
Raw Normal View History

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
2021-10-06 02:16:20 +00:00
# LICENSE file in the root directory of this source tree.
2022-08-01 03:59:34 +00:00
import glob
import os
2021-10-06 02:16:20 +00:00
from setuptools import find_packages, setup
2021-10-06 02:16:20 +00:00
libs = list(glob.glob("./bitsandbytes/libbitsandbytes*.so"))
2022-08-01 03:59:34 +00:00
libs = [os.path.basename(p) for p in libs]
print("libs:", libs)
2021-10-06 02:16:20 +00:00
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
2021-10-06 02:16:20 +00:00
setup(
2022-08-01 03:59:34 +00:00
name=f"bitsandbytes",
version=f"0.36.0-2",
2022-07-01 14:16:10 +00:00
author="Tim Dettmers",
author_email="dettmers@cs.washington.edu",
description="8-bit optimizers and matrix multiplication routines.",
2022-07-01 14:16:10 +00:00
license="MIT",
keywords="gpu optimizers optimization 8-bit quantization compression",
url="https://github.com/TimDettmers/bitsandbytes",
2021-10-06 02:16:20 +00:00
packages=find_packages(),
package_data={"": libs},
long_description=read("README.md"),
long_description_content_type="text/markdown",
2021-10-06 02:16:20 +00:00
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
2021-10-06 02:16:20 +00:00
],
)