-
Notifications
You must be signed in to change notification settings - Fork 1
/
SConstruct
33 lines (23 loc) · 830 Bytes
/
SConstruct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Starter SConstruct for enscons
# (filled by enscons.setup2toml)
import enscons
import pytoml as toml
metadata = dict(toml.load(open("pyproject.toml")))["tool"]["enscons"]
full_tag = enscons.get_universal_tag()
env = Environment(
tools=["default", "packaging", enscons.generate],
PACKAGE_METADATA=metadata,
WHEEL_TAG=full_tag
)
# Only *.py is included automatically by setup2toml.
# Add extra 'purelib' files or package_data here.
py_source = ['zstddec.py', 'zstddec.wasm']
purelib = env.Whl("purelib", py_source, root='')
whl = env.WhlFile(purelib)
# Add automatic source files, plus any other needed files.
sdist_source = FindSourceFiles() + ["PKG-INFO"]
sdist = env.SDist(source=sdist_source)
env.NoClean(sdist)
env.Alias("sdist", sdist)
# needed for pep517 / enscons.api to work
env.Default(whl, sdist)