
from distutils.core import setup, Extension

setup(
    name = 'Encoder',
    version = '1.0',
    description = 'Encode stuff',
    ext_modules = [
        Extension(
            name = '_encoder',
            sources = [
                'src/encoder.c',
                'src/module.c',
                ],
            include_dirs = [
                'include',
                ],
            ),
        ],
    )


from distutils.core import setup, Extension

setup(
    name = 'Encoder',
    version = '1.0',
    description = 'Encode stuff',
    ext_modules = [
        Extension(
            name = '_encoder',
            sources = [
                'src/encoder.c',
                'src/module.c',
                ],
            include_dirs = [
                'include',
                ],
            depends = [
                'include/buffer.h', # As this is essentially a source file
                ],
            ),
        ],
    )

Include buffer.h as a dependency for rebuilds
Include buffer.h as a dependency for rebuilds

  
  from distutils.core import setup, Extension
  
  setup(
      name = 'Encoder',
      version = '1.0',
      description = 'Encode stuff',
      ext_modules = [
          Extension(
              name = '_encoder',
              sources = [
                  'src/encoder.c',
                  'src/module.c',
                  ],
              include_dirs = [
                  'include',
                  ],
+             depends = [
+                 'include/buffer.h', # As this is essentially a source file
+                 ],
              ),
          ],
      )
  
Include buffer.h as a dependency for rebuilds
## Code Before:

from distutils.core import setup, Extension

setup(
    name = 'Encoder',
    version = '1.0',
    description = 'Encode stuff',
    ext_modules = [
        Extension(
            name = '_encoder',
            sources = [
                'src/encoder.c',
                'src/module.c',
                ],
            include_dirs = [
                'include',
                ],
            ),
        ],
    )

## Instruction:
Include buffer.h as a dependency for rebuilds
## Code After:

from distutils.core import setup, Extension

setup(
    name = 'Encoder',
    version = '1.0',
    description = 'Encode stuff',
    ext_modules = [
        Extension(
            name = '_encoder',
            sources = [
                'src/encoder.c',
                'src/module.c',
                ],
            include_dirs = [
                'include',
                ],
            depends = [
                'include/buffer.h', # As this is essentially a source file
                ],
            ),
        ],
    )
