forked from microsoft/mssql-scripter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev_setup.py
29 lines (20 loc) · 937 Bytes
/
dev_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
#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from __future__ import print_function
import os
import platform
import utility
import mssqlscripter.mssqltoolsservice.external as mssqltoolsservice
print('Running dev setup...')
print('Root directory \'{}\'\n'.format(utility.ROOT_DIR))
# install general requirements.
utility.exec_command('pip install -r dev_requirements.txt', utility.ROOT_DIR)
run_time_id = utility.get_current_platform()
if run_time_id:
mssqltoolsservice.copy_sqltoolsservice(run_time_id)
else:
print("This platform does not support mssqltoolsservice.")
print('Finished dev setup.')