-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
35 lines (26 loc) · 970 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
from setuptools import setup
from git import Repo
repo = Repo()
# Get version before adding version file
rawVer = repo.git.describe('--tags')
fields = rawVer.split('-')
if len(fields) == 1:
pyVer = fields[0]
else:
pyVer = fields[0] + '.dev' + fields[1]
# append version constant to package init
with open('python/axi_soc_ultra_plus_core/__init__.py','a') as vf:
vf.write(f'\n__version__="{pyVer}"\n')
setup (
name='axi_soc_ultra_plus_core',
version=pyVer,
packages=['axi_soc_ultra_plus_core',
'axi_soc_ultra_plus_core/hardware',
'axi_soc_ultra_plus_core/hardware/RealDigitalRfSoC4x2',
'axi_soc_ultra_plus_core/hardware/XilinxZcu208',
'axi_soc_ultra_plus_core/hardware/XilinxZcu216',
'axi_soc_ultra_plus_core/rfsoc_utility',
'axi_soc_ultra_plus_core/rfsoc_utility/gui',
'axi_soc_ultra_plus_core/rfsoc_utility/pydm',],
package_dir={'':'python'},
)