|
pyinstall = None |
|
|
|
|
1 |
Import('*') |
Import('*') |
2 |
|
|
3 |
import os |
local_env=env.Copy() |
|
import sys |
|
|
|
|
|
extensions_dir = str(esysroot) + '/scons' |
|
|
sys.path.append(extensions_dir) |
|
4 |
|
|
5 |
import scons_extensions |
src_dir = local_env.Dir('.').srcnode().abspath |
6 |
|
|
7 |
finleypy_env = Environment(ENV = os.environ) |
import os |
8 |
|
filenames = os.listdir(src_dir) |
9 |
py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True) |
python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']] |
|
finleypy_env.Append(BUILDERS = {'PyCompile' : py_builder}); |
|
|
|
|
|
python_src = ['__init__.py', |
|
|
'finley.py', |
|
|
'finleybench.py'] |
|
10 |
|
|
11 |
pyc = finleypy_env.PyCompile(python_src) |
pyc = local_env.PyCompile(python_src) |
12 |
|
|
13 |
Default(finleypy_env.Install(pydir, pyc)) |
local_env.Depends(pyc, dep_lib) |
14 |
Default(finleypy_env.Install(pydir2, pyc)) |
local_env.Install(pyinstall+'/finley', pyc) |
|
if pyinstall != None: |
|
|
Default(finleypy_env.Install(pyinstall, pyc)) |
|