-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
38 lines (29 loc) · 955 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
38
#!/usr/bin/python3
import os
from setuptools import setup
def get_packages(base="chordinstability"):
"""Return all modules used in chord-instability."""
if not os.path.exists(os.path.join(base, "__init__.py")):
# only python modules
return []
result = [base.replace("/", ".")]
for name in os.listdir(base):
if not os.path.isdir(os.path.join(base, name)):
continue
if name == "__pycache__":
continue
# find more python submodules in that directory
result += get_packages(os.path.join(base, name))
return result
setup(
name="chord-instability",
version="0.0.1",
description="Calculating instability of chords",
author="Sezanzeb",
author_email="[email protected]",
url="https://github.com/sezanzeb/chord-instability",
license="MIT",
packages=get_packages(),
include_package_data=True,
install_requires=["numpy"],
)