-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (59 loc) · 2.3 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
62
63
64
import sys
from cx_Freeze import setup, Executable
site_packages = "C:/Users/schup/OneDrive/Documents/KonfiguratorFuerOSMDaten/venv/Lib/site-packages"
pyproj_path = f"{site_packages}/pyproj.libs"
fiona_path = f"{site_packages}/Fiona.libs"
matplotlib_path = f"{site_packages}/matplotlib.libs"
scipy_path = f"{site_packages}/scipy.libs"
skelarn_path = f"{site_packages}/sklearn/.libs"
# Dependencies are automatically detected, but it might need fine tuning.
# Setup base packages
build_exe_options = {
"include_msvcr": True,
"optimize": 1,
"packages": [
"fiona",
"folium",
"matplotlib",
"seaborn",
"mapclassify",
"shapely",
"scipy",
"sklearn",
"multiprocessing"
],
"include_files": [
(pyproj_path, "Lib/pyproj.libs"),
(fiona_path, "Lib/Fiona.libs"),
(matplotlib_path, "Lib/matplotlib.libs"),
(scipy_path, "Lib/scipy.libs"),
(skelarn_path, "Lib/sklearn.libs"),
("data", "data")
],
}
# base="Win32GUI" should be used only for Windows GUI app
base = "Win32GUI" if sys.platform == "win32" else None
setup(
# Meta-data
name="Configurator for OSM-Data",
version="1.0",
author="Felix Weik, Jan-Philipp Hansen, Karl Bernhard, Pascal Dawideit, Simon Schupp",
description="Configurator for OSM-Data",
long_description="Whether it’s biking to college or driving to the supermarket, traffic effects us all. "
"This product uses generated geodata from the free project ‘OpenStreetMap’ (OSM) "
"and creates a numerical ranking of the attractiveness of geographic locations."
" A main focus is the configurability of the generation of this score. "
"Traffic planners can easily use this attractiveness score for their traffic forecasting models.",
url="https://github.com/LuposX/KonfiguratorFuerOSMDaten",
license="GPL-3.0",
keywords=["osm", "traffic", "data", "GUI"],
# Build options
options={"build_exe": build_exe_options},
executables=[
Executable("src/osm_configurator/control/application_controller.py",
base=base,
targetName="configurator_for_osm_data.exe",
icon="icon_for_project.ico"
)
]
)