-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsetup.py
More file actions
24 lines (19 loc) · 796 Bytes
/
setup.py
File metadata and controls
24 lines (19 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from setuptools import setup, Distribution
class BinaryDistribution(Distribution):
"""Distribution which always forces a binary package with platform name"""
# pylint: disable=no-self-use
def has_ext_modules(self):
"""Distribution which always forces a binary package with platform name"""
return True
with open("./src/FlaUILibrary/version.py", "r") as fh:
VersionFile = fh.read()
VersionFile = VersionFile.replace("\n", "")
IGNORE, VERSION = VersionFile.split(" = ")
VERSION = VERSION.replace("\"", "")
setup(
version=VERSION,
distclass=BinaryDistribution,
platforms=['Windows'],
license="MIT", # SPDX identifier for modern setuptools
license_files=["LICENSE"] # Points to your license file (tuple or list)
)