forked from tungstenfabric/tf-nova-vif-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConscript
39 lines (34 loc) · 1.15 KB
/
SConscript
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
34
35
36
37
38
39
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
# -*- mode: python; -*-
env = DefaultEnvironment().Clone()
sources = [
'MANIFEST.in',
'setup.py',
'tox.ini',
'requirements.txt',
'test-requirements.txt',
'nova_contrail_vif/__init__.py',
'nova_contrail_vif/contrailvif.py',
'vif_plug_vrouter/i18n.py',
'vif_plug_vrouter/tests/test_plugin.py',
'vif_plug_vrouter/tests/__init__.py',
'vif_plug_vrouter/privsep.py',
'vif_plug_vrouter/exception.py',
'vif_plug_vrouter/__init__.py',
'vif_plug_vrouter/vrouter.py',
'vif_plug_contrail_vrouter/tests/test_plugin.py',
'vif_plug_contrail_vrouter/tests/__init__.py',
'vif_plug_contrail_vrouter/__init__.py',
'vif_plug_contrail_vrouter/vrouter.py'
]
sdist_gen = env.Command('dist', sources,
'cd ' + Dir('.').path + ' && python3 setup.py sdist')
env.Default(sdist_gen)
env.Alias('nova-contrail-vif', sdist_gen)
if 'install' in BUILD_TARGETS:
install_whl_cmd = env.Command(
None, sources,
'cd ' + Dir('.').path + ' && python3 setup.py bdist_wheel --dist-dir /pip')
env.Alias('install', install_whl_cmd)