|  | 
|  | 1 | +import glob | 
| 1 | 2 | from setuptools import setup, Extension | 
| 2 | 3 | 
 | 
| 3 | 4 | _quickjs = Extension('_quickjs', | 
| 4 | 5 |  define_macros=[('CONFIG_VERSION', '"2019年07月09日"')], | 
| 5 |  | - sources=[ | 
| 6 |  | - 'module.c', 'third-party/quickjs.c', 'third-party/cutils.c', | 
| 7 |  | - 'third-party/libregexp.c', 'third-party/libunicode.c' | 
| 8 |  | - ]) | 
|  | 6 | + sources=['module.c'] + glob.glob("third-party/*.c"), | 
|  | 7 | + headers=glob.glob("third-party/*.h")) | 
| 9 | 8 | 
 | 
| 10 | 9 | long_description = """ | 
| 11 | 10 | Thin Python wrapper around https://bellard.org/quickjs/ . | 
|  | 
| 15 | 14 |  author_email="petter.strandmark@gmail.com", | 
| 16 | 15 |  name='quickjs', | 
| 17 | 16 |  url='https://github.com/PetterS/quickjs', | 
| 18 |  | - version='1.0.7', | 
|  | 17 | + version='1.0.8', | 
| 19 | 18 |  description='Wrapping the quickjs C library.', | 
| 20 | 19 |  long_description=long_description, | 
| 21 | 20 |  packages=["quickjs"], | 
|  | 
0 commit comments