-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
37 lines (33 loc) · 991 Bytes
/
setup.py
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
28
29
30
31
32
33
34
35
36
37
import pathlib
from setuptools import setup, find_packages
import subprocess
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
try:
cuda_version = (
subprocess.run(["nvcc", "-V"], stdout=subprocess.PIPE, encoding='utf8')
.stdout.split("release ")[-1]
.split(",")[0]
.replace(".", "")
)
except FileNotFoundError:
raise Exception("nvcc not in PATH.")
setup(
name="dictlearn-gpu",
version="1.0.0",
description="Dictionary learning with cuda.",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/mukheshpugal/dictlearn_gpu",
author="Mukhesh Pugalendhi",
author_email="[email protected]",
license="MIT",
packages=find_packages(),
package_data={
"dictlearn_gpu": ["src/ompbatch.cu"],
},
install_requires=[
"numpy",
f"cupy-cuda{cuda_version}",
],
)