bitsandbytes-rocm/setup.py

38 lines
1.2 KiB
Python
Raw Normal View History

2021-10-06 02:16:20 +00:00
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
2022-08-01 03:59:34 +00:00
import glob
2021-10-06 02:16:20 +00:00
from setuptools import setup, find_packages
2022-08-01 03:59:34 +00:00
libs = list(glob.glob('./bitsandbytes/libbitsandbytes*.so'))
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()
setup(
2022-08-01 03:59:34 +00:00
name=f"bitsandbytes",
version=f"0.31.0",
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"],
},
2022-08-01 03:59:34 +00:00
package_data={'': libs},
2021-10-06 02:16:20 +00:00
long_description=read('README.md'),
2022-07-01 14:16:10 +00:00
long_description_content_type='text/markdown',
2021-10-06 02:16:20 +00:00
classifiers=[
"Development Status :: 4 - Beta",
2021-10-06 02:16:20 +00:00
'Topic :: Scientific/Engineering :: Artificial Intelligence'
],
)