File tree 1 file changed +12
-2
lines changed 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
import glob
2
+ import sys
3
+
2
4
from setuptools import setup , Extension
3
5
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
+
4
12
_quickjs = Extension ('_quickjs' ,
5
13
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 )),
7
17
headers = glob .glob ("third-party/*.h" ))
8
18
9
19
long_description = """
14
24
15
25
name = 'quickjs' ,
16
26
url = 'https://github.com/PetterS/quickjs' ,
17
- version = '1.1.0 ' ,
27
+ version = '1.1.1 ' ,
18
28
description = 'Wrapping the quickjs C library.' ,
19
29
long_description = long_description ,
20
30
packages = ["quickjs" ],
You can’t perform that action at this time.
0 commit comments