-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (45 loc) · 1.38 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
#!/usr/bin/env python3
import subprocess
import platform
from setuptools import setup, Distribution
long_description = \
"""============================================================
UP_MA_BFWS
============================================================
"""
arch = (platform.system(), platform.machine())
EXECUTABLES = {
("Linux", "x86_64"): "maBFWS",
# ("Windows", "x86_64"): "maBFWS",
# ("Windows", "AMD64"): "maBFWS",
}
executable = EXECUTABLES[arch]
try:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
class bdist_wheel(_bdist_wheel):
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
except ImportError:
bdist_wheel = None
class BinaryDistribution(Distribution):
"""Distribution which always forces a binary package with platform name"""
def has_ext_modules(self):
return True
def is_pure(self):
return False
setup(
name="up_ma_bfws",
version="0.0.4",
description="up_ma_bfws",
long_description=long_description,
long_description_content_type ="text/markdown",
author='UNIBS Team',
author_email="[email protected]",
packages=["up_ma_bfws"],
package_data={"up_ma_bfws": [executable]},
distclass=BinaryDistribution,
include_package_data=True,
cmdclass={'bdist_wheel': bdist_wheel},
license="APACHE",
)