-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (55 loc) · 2.48 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
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python3
# Digraph3 installation script
# Copyright (C) 2016-2022 Raymond Bisdorff
####################
#from distutils.core import setup # deprecated since Python3.10
from setuptools import setup
CythonInstalled = True
VERSION = '3.12'
try:
from Cython.Build import cythonize
except:
print("""
The Cython compiler cannot be imported from the running Python environment!
If you wish to install the cythonized C-compiled modules you need to run:
...$ python3 -m pip install cython from the systems console.
""")
CythonInstalled = False
if CythonInstalled:
setup(name='Digraph3',
version=VERSION,
#version_command='svn info --show-item revision',
py_modules=['arithmetics','digraphsTools','digraphs','perfTabs',
'outrankingDigraphs','performanceQuantiles','mpOutrankingDigraphs',
'sortingDigraphs','votingProfiles',
'linearOrders','transitiveDigraphs','dynamicProgramming',
'graphs','pairings','randomNumbers','randomDigraphs',
'randomPerfTabs', 'ratingDigraphs',
'sparseOutrankingDigraphs','xmcda'],
ext_modules=cythonize("cython/*.pyx",language_level=3),
license='digraph3_copyright.html',
url='https://digraph3.readthedocs.io/en/latest/index.html',
description='Lets you add bipolar graph and digraphs methods to your applications',
author='Raymond Bisdorff',
author_email='raymond.bisdorff@uni.lu',
contact='https://rbisdorff.github.io/',
)
else:
setup(name='Digraph3',
version=VERSION,
#version_command='svn info --show-item revision',
py_modules=['arithmetics','digraphsTools','digraphs','perfTabs',
'outrankingDigraphs','performanceQuantiles',
'mpOutrankingDigraphs',
'sortingDigraphs','votingProfiles','dynamicProgramming',
'linearOrders','transitiveDigraphs','graphs','randomNumbers',
'randomDigraphs','randomPerfTabs','ratingDigraphs',
'sparseOutrankingDigraphs',
'xmcda'],
license='digraph3_copyright.html',
url='https://digraph3.readthedocs.io/en/latest/index.html',
description='Lets you add bipolar graph and digraphs methods to your applications',
author='Raymond Bisdorff',
author_email='raymond.bisdorff@uni.lu',
contact='https://rbisdorff.github.io/',
)