-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.py
52 lines (48 loc) · 1.78 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
47
48
49
50
51
52
import json
from skbuild import setup
with open('version.json', 'r+') as version_file:
version_dict = json.loads(version_file.read())
# build version string
version = '{major}.{minor}.{patch}-{release}'.format(
major=version_dict['libcomps_VERSION_MAJOR'],
minor=version_dict['libcomps_VERSION_MINOR'],
patch=version_dict['libcomps_VERSION_PATCH'],
release=version_dict['libcomps_RELEASE']
)
setup(
name='libcomps',
description='Comps XML file manipulation library',
version=version,
license='GPLv2+',
author='RPM Software Management',
author_email='[email protected]',
url='https://github.com/rpm-software-management',
classifiers=[
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Operating System :: POSIX :: Linux',
'Programming Language :: C',
'Topic :: System :: Software Distribution',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
packages=['libcomps'],
package_dir={
'libcomps': 'libcomps/src/python/src/libcomps/'
},
cmake_args=[
'-DBIN_INSTALL_DIR:PATH=libcomps/src/python/src/libcomps/data/bin',
'-DBUILD_LIBCOMPS_SHARED:BOOL=OFF',
'-DENABLE_DEVELOPMENT:BOOL=OFF',
'-DENABLE_DOCS:BOOL=OFF',
'-DENABLE_TESTS:BOOL=OFF'
],
cmake_languages=['C'],
cmake_source_dir="libcomps",
)