Source

cffi / setup.py

Diff from to

File setup.py

 import sys, os
-from setuptools import setup, Feature, Extension
 
 
 sources = ['c/_ffi_backend.c']
                    if filename.lower().endswith('.c'))
 
 
-
-setup(
+if __name__ == '__main__':
+  from setuptools import setup, Feature, Extension
+  setup(
     name='cffi',
     description='Foreign Function Interface for Python calling C code.',
     get_version_from_scm=True,
     install_requires=[
         'pycparser',
     ]
-)
+  )