bitsandbytes-rocm/setup.py

40 lines
1.2 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.31.8",
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="http://packages.python.org/bitsandbytes",
2021-10-06 02:16:20 +00:00
packages=find_packages(),
entry_points={
"console_scripts": ["debug_cuda = bitsandbytes.debug_cli:cli"],
},
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
],
)