-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (33 loc) · 925 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
39
40
41
# setup.py -*- Python -*-
#
# This file is licensed under the MIT License.
# SPDX-License-Identifier: MIT
#
# (c) Copyright 2022 Advanced Micro Devices, Inc.
import os
import re
from setuptools import setup, find_packages
from setuptools.command.install import install
__pkg_name__ = 'rubicon'
verstrline = open(os.path.join(__pkg_name__, '__init__.py'), 'r').read()
vsre = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(vsre, verstrline, re.M)
if mo:
__version__ = mo.group(1)
else:
raise RuntimeError('Unable to find version string in "{}/__init__.py".'.format(__pkg_name__))
package_name = "%s" % __pkg_name__
setup(
name=package_name,
version=__version__,
packages=["nni"],
package_dir={
"nni": "./rubicon/tools/nni",
},
include_package_data=True,
entry_points = {
'console_scripts': [
'{0} = {0}:main'.format(__pkg_name__)
]
}
)