-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
46 lines (37 loc) · 1.09 KB
/
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
38
39
40
41
42
43
44
45
46
from distutils.core import setup
from distutils.extension import Extension
from itertools import dropwhile
import numpy as np
from os import path
def collect_docstring(lines):
"""Return document docstring if it exists"""
lines = dropwhile(lambda x: not x.startswith('"""'), lines)
doc = ""
for line in lines:
doc += line
if doc.endswith('"""\n'):
break
return doc[3:-4].replace("\r", "").replace("\n", " ")
def get_install_requirements():
return [
"numpy",
"torch",
]
def setup_package():
setup(
name="interdiff",
packages=["interdiff"],
version="0.1",
maintainer="Sirui Xu",
maintainer_email="[email protected]",
url="https://github.com/Sirui-Xu",
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"Programming Language :: Python",
],
install_requires=get_install_requirements(),
)
if __name__ == "__main__":
setup_package()