-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (24 loc) · 861 Bytes
/
setup.py
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
#!/usr/bin/env python
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0OA
#
# Authors:
# - Wen Guan, <wen.guan@cern.ch>, 2019
import os
import subprocess
import sys
def setup(argv):
current_dir = os.path.dirname(os.path.realpath(__file__))
packages = ['common', 'main', 'client', 'atlas', 'workflow', 'doma', 'website', 'monitor']
for package in packages:
path = os.path.join(current_dir, '%s/setup.py' % package)
cmd = 'python ' + path + ' ' + ' clean --all'
print(cmd)
subprocess.call(cmd, shell=True)
cmd = 'python ' + path + ' ' + ' '.join(argv)
print(cmd)
subprocess.call(cmd, shell=True)
setup(sys.argv[1:])