Skip to content

Commit

Permalink
Move build data to setup.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
bicobus committed Jan 6, 2024
1 parent 543d561 commit dae5270
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
7 changes: 0 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ name = "pyCeStoriesEditor"
version = "0.1"
description = "Small stories visualizer for the Bannerlord mod Captivity Events."

[tool.distutils.build_exe]
excludes = [
"tkinter", "gi", "gtk", "PyQt4", "PyQt5", "PyQt6",
"PySide2", "PySide6", "shiboken2", "shiboken6", "lib2to3"
]
packages = ["xsdata_attrs.hooks"]

[tool.poetry]
name = "pycestorieseditor"
version = "0.1.0"
Expand Down
19 changes: 16 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import sys
from cx_Freeze import setup, Executable

base = 'Win32GUI' if sys.platform=='win32' else None
base = 'Win32GUI' if sys.platform == 'win32' else None

executables = [
Executable('src/pycestorieseditor/__main__.py', base=base, target_name = 'pce')
Executable('src/pycestorieseditor/__main__.py', base=base, target_name='pce')
]
buildexe = {
'excludes': [
"tkinter", "gi", "gtk", "PyQt4", "PyQt5", "PyQt6",
"PySide2", "PySide6", "shiboken2", "shiboken6", "lib2to3"
],
'packages': ["xsdata_attrs.hooks"],
'include_msvcr': False
}

setup(executables = executables)
setup(
executables=executables,
options={
"build_exe": buildexe
}
)

0 comments on commit dae5270

Please sign in to comment.