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)
|
2022-08-01 02:41:56 +00:00
|
|
|
|
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",
|
2022-07-26 17:32:22 +00:00
|
|
|
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(),
|
2022-07-28 04:16:04 +00:00
|
|
|
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=[
|
2021-10-07 15:39:38 +00:00
|
|
|
"Development Status :: 4 - Beta",
|
2021-10-06 02:16:20 +00:00
|
|
|
'Topic :: Scientific/Engineering :: Artificial Intelligence'
|
|
|
|
],
|
|
|
|
)
|