-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup_cx.py
39 lines (35 loc) · 1.05 KB
/
setup_cx.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
import toml
from cx_Freeze import setup, Executable
# Load the .toml file
with open('pyproject.toml', 'r') as f:
config = toml.load(f)
# Extract relevant information from the .toml file
project_name = config['tool']['poetry']['name']
version = config['tool']['poetry']['version']
description = config['tool']['poetry']['description']
# Define the executables
executables = [
Executable(
script="progress/__main__.py", # Entry point for the module
target_name=project_name
)
]
# Define the setup configuration
setup(
name=project_name,
version=version,
description=description,
executables=executables,
options={
'build_exe': {
'packages': [
'numpy', 'pyomo', 'pandas', 'mpi4py', 'matplotlib', 'openpyxl',
'seaborn', 'sklearn', 'kneed', 'requests', 'pvlib', 'rex', 'PySide6',
'plotly', 'kaleido'
],
'include_files': [
'README.md', 'LICENSE'
]
}
}
)