Skip to content

Commit

Permalink
A fix for cx_freeze with pycparser used by pymunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
illume committed Dec 9, 2018
1 parent bd4ae60 commit 1f825cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ def load_pymunk(finder, module):
os.path.join(os.path.basename(pymunk.chipmunk_path)),
copyDependentFiles = False)
cx_Freeze.hooks.load_pymunk = load_pymunk
if not hasattr(cx_Freeze.hooks, 'load_pycparser'):
def load_pycparser(finder, module):
""" These files are missing which causes
permission denied issues on windows when they are regenerated.
"""
finder.IncludeModule("pycparser.lextab")
finder.IncludeModule("pycparser.yacctab")
cx_Freeze.hooks.load_pycparser = load_pycparser

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
Expand Down Expand Up @@ -86,7 +94,7 @@ def load_pymunk(finder, module):
# package_data={'stuntcat': []},
url='https://github.com/pygame/stuntcat',
install_requires=['pygame'],
version='0.0.14',
version='0.0.12',
entry_points={
'console_scripts': [
'stuntcat=stuntcat.cli:main',
Expand Down

0 comments on commit 1f825cf

Please sign in to comment.