33
44from setuptools import setup , Extension
55
6+
67def get_c_sources (include_headers = False ):
7- sources = ['module.c' ] + glob .glob ("third-party/*.c" )
8- if include_headers :
9- sources += glob .glob ("third-party/*.h" )
10- return sources
8+ sources = ['module.c' ] + glob .glob ("third-party/*.c" )
9+ if include_headers :
10+ sources += glob .glob ("third-party/*.h" )
11+ return sources
12+
1113
12- _quickjs = Extension ('_quickjs' ,
13- define_macros = [('CONFIG_VERSION' , '"2019-07-09"' )],
14- # HACK.
15- # See https://github.com/pypa/packaging-problems/issues/84.
16- sources = get_c_sources (include_headers = ("sdist" in sys .argv )),
17- headers = glob .glob ("third-party/*.h" ))
14+ _quickjs = Extension (
15+ '_quickjs' ,
16+ define_macros = [('CONFIG_VERSION' , '"2019-07-09"' )],
17+ # HACK.
18+ # See https://github.com/pypa/packaging-problems/issues/84.
19+ sources = get_c_sources (include_headers = ("sdist" in sys .argv )),
20+ headers = glob .glob ("third-party/*.h" ))
1821
1922long_description = """
2023Thin Python wrapper around https://bellard.org/quickjs/ .
@@ -24,7 +27,7 @@ def get_c_sources(include_headers=False):
2427 author_email = "petter.strandmark@gmail.com" ,
2528 name = 'quickjs' ,
2629 url = 'https://github.com/PetterS/quickjs' ,
27- version = '1.1.1 ' ,
30+ version = '1.1.2 ' ,
2831 description = 'Wrapping the quickjs C library.' ,
2932 long_description = long_description ,
3033 packages = ["quickjs" ],
0 commit comments