Skip to content

Commit

Permalink
fix: remove misuse of packages in setuptools.setup (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte committed Feb 8, 2024
1 parent ba22e45 commit 97f6df4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cx_Freeze/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def plugin_install(dist: setuptools.Distribution) -> None:
return
validate_executables(dist, "executables", dist.executables)

# Fix package discovery (setuptools >= 61)
if getattr(dist, "py_modules", None) is None:
dist.py_modules = []
# Disable package discovery (setuptools >= 61) and/or misuse of packages
dist.py_modules = []
dist.packages = []

# Add/update commands (provisional)
cmdclass = dist.cmdclass
Expand Down

0 comments on commit 97f6df4

Please sign in to comment.