File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 11import glob
2+ import sys
3+
24from setuptools import setup , Extension
35
6+ def 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
11+
412_quickjs = Extension ('_quickjs' ,
513 define_macros = [('CONFIG_VERSION' , '"2019-07-09"' )],
6- sources = ['module.c' ] + glob .glob ("third-party/*.c" ),
14+ # HACK.
15+ # See https://github.com/pypa/packaging-problems/issues/84.
16+ sources = get_c_sources (include_headers = ("sdist" in sys .argv )),
717 headers = glob .glob ("third-party/*.h" ))
818
919long_description = """
1424 author_email = "petter.strandmark@gmail.com" ,
1525 name = 'quickjs' ,
1626 url = 'https://github.com/PetterS/quickjs' ,
17- version = '1.1.0 ' ,
27+ version = '1.1.1 ' ,
1828 description = 'Wrapping the quickjs C library.' ,
1929 long_description = long_description ,
2030 packages = ["quickjs" ],
You can’t perform that action at this time.
0 commit comments