Setup: update cx_freeze to 7.x (#3195)
This commit is contained in:
parent
487a067d10
commit
0ed0de3daa
6
setup.py
6
setup.py
|
@ -21,7 +21,7 @@ from pathlib import Path
|
||||||
|
|
||||||
# This is a bit jank. We need cx-Freeze to be able to run anything from this script, so install it
|
# This is a bit jank. We need cx-Freeze to be able to run anything from this script, so install it
|
||||||
try:
|
try:
|
||||||
requirement = 'cx-Freeze>=6.15.16,<7'
|
requirement = 'cx-Freeze>=7.0.0'
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
try:
|
try:
|
||||||
pkg_resources.require(requirement)
|
pkg_resources.require(requirement)
|
||||||
|
@ -228,8 +228,8 @@ class BuildCommand(setuptools.command.build.build):
|
||||||
|
|
||||||
|
|
||||||
# Override cx_Freeze's build_exe command for pre and post build steps
|
# Override cx_Freeze's build_exe command for pre and post build steps
|
||||||
class BuildExeCommand(cx_Freeze.command.build_exe.BuildEXE):
|
class BuildExeCommand(cx_Freeze.command.build_exe.build_exe):
|
||||||
user_options = cx_Freeze.command.build_exe.BuildEXE.user_options + [
|
user_options = cx_Freeze.command.build_exe.build_exe.user_options + [
|
||||||
('yes', 'y', 'Answer "yes" to all questions.'),
|
('yes', 'y', 'Answer "yes" to all questions.'),
|
||||||
('extra-data=', None, 'Additional files to add.'),
|
('extra-data=', None, 'Additional files to add.'),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue