
from distutils.core import setup
from Cython.Build import cythonize

#from Cython.Compiler.Options import directive_defaults
#directive_defaults['profile'] = True


setup(
        name = "Pentacular",
        ext_modules = cythonize(
            [
            'board_strip.pyx',
            'length_lookup_table.pyx',
            'priority_filter.py',
            'budget_searcher.py',
            'utility_calculator.py',
            'utility_stats.py',
            'direction_strips.py',
            'alpha_beta.py',
            'ab_state.py',
            'game_state.py',
            'board.py',
            'ai_player.py',
            ],
            # extra_compile_args=["-O3"], # Is this doing anything?
        )
    )


from distutils.core import setup
from Cython.Build import cythonize

#from Cython.Compiler.Options import directive_defaults
#directive_defaults['profile'] = True

cy_modules = [
            'board_strip.pyx',
            'length_lookup_table.pyx',
            ]
if False:
    cy_modules.extend([
        'priority_filter.py',
        'budget_searcher.py',
        'utility_calculator.py',
        'utility_stats.py',
        'direction_strips.py',
        'alpha_beta.py',
        'ab_state.py',
        'game_state.py',
        'board.py',
        'ai_player.py',
    ])

setup(
        name = "Pentacular",
        ext_modules = cythonize(
            [
            'board_strip.pyx',
            'length_lookup_table.pyx',
            ],
            # extra_compile_args=["-O3"], # Is this doing anything?
        )
    )

Remove py modules causing GUI lag
Remove py modules causing GUI lag

  
  from distutils.core import setup
  from Cython.Build import cythonize
  
  #from Cython.Compiler.Options import directive_defaults
  #directive_defaults['profile'] = True
  
+ cy_modules = [
+             'board_strip.pyx',
+             'length_lookup_table.pyx',
+             ]
+ if False:
+     cy_modules.extend([
+         'priority_filter.py',
+         'budget_searcher.py',
+         'utility_calculator.py',
+         'utility_stats.py',
+         'direction_strips.py',
+         'alpha_beta.py',
+         'ab_state.py',
+         'game_state.py',
+         'board.py',
+         'ai_player.py',
+     ])
  
  setup(
          name = "Pentacular",
          ext_modules = cythonize(
              [
              'board_strip.pyx',
              'length_lookup_table.pyx',
-             'priority_filter.py',
-             'budget_searcher.py',
-             'utility_calculator.py',
-             'utility_stats.py',
-             'direction_strips.py',
-             'alpha_beta.py',
-             'ab_state.py',
-             'game_state.py',
-             'board.py',
-             'ai_player.py',
              ],
              # extra_compile_args=["-O3"], # Is this doing anything?
          )
      )
  
Remove py modules causing GUI lag
## Code Before:

from distutils.core import setup
from Cython.Build import cythonize

#from Cython.Compiler.Options import directive_defaults
#directive_defaults['profile'] = True


setup(
        name = "Pentacular",
        ext_modules = cythonize(
            [
            'board_strip.pyx',
            'length_lookup_table.pyx',
            'priority_filter.py',
            'budget_searcher.py',
            'utility_calculator.py',
            'utility_stats.py',
            'direction_strips.py',
            'alpha_beta.py',
            'ab_state.py',
            'game_state.py',
            'board.py',
            'ai_player.py',
            ],
            # extra_compile_args=["-O3"], # Is this doing anything?
        )
    )

## Instruction:
Remove py modules causing GUI lag
## Code After:

from distutils.core import setup
from Cython.Build import cythonize

#from Cython.Compiler.Options import directive_defaults
#directive_defaults['profile'] = True

cy_modules = [
            'board_strip.pyx',
            'length_lookup_table.pyx',
            ]
if False:
    cy_modules.extend([
        'priority_filter.py',
        'budget_searcher.py',
        'utility_calculator.py',
        'utility_stats.py',
        'direction_strips.py',
        'alpha_beta.py',
        'ab_state.py',
        'game_state.py',
        'board.py',
        'ai_player.py',
    ])

setup(
        name = "Pentacular",
        ext_modules = cythonize(
            [
            'board_strip.pyx',
            'length_lookup_table.pyx',
            ],
            # extra_compile_args=["-O3"], # Is this doing anything?
        )
    )
