Commits

Kyle Ambroff  committed 9827a62

Improved build dependencies patch from flub.

Modifying one of the platform support headers will cause a rebuild.

Slightly modified from this patch:
https://bitbucket.org/flub/greenlet-queue/changeset/9bbb9ee92aa4

  • Participants
  • Parent commits 3fa6891

Comments (0)

Files changed (1)

 from setuptools import Extension
 from setuptools import setup
 
+def _find_platform_headers():
+    return [os.path.join('platform', name)
+            for name in os.listdir('platform')
+            if name.startswith('switch_') and name.endswith('.h')]
+
 extension = Extension(
     name='greenlet',
     sources=['greenlet.c'],
-    depends=['greenlet.h', 'slp_platformselect.h'])
+    depends=['greenlet.h', 'slp_platformselect.h'] + _find_platform_headers())
 
 setup(
     name="greenlet",