forked from nvaccess/nvda
-
Notifications
You must be signed in to change notification settings - Fork 3
/
sconscript
35 lines (31 loc) · 1.08 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
###
# This file is a part of the NVDA project.
# URL: http://www.nvaccess.org/
# Copyright 2019 NV Access Limited.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.0, as published by
# the Free Software Foundation.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# This license can be found at:
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
###
import sys
Import("env")
doInstall = env.Command(
"_executed_requirements.txt", # $TARGET
"requirements.txt", # $SOURCE
[
# Install deps from requirements file.
[
sys.executable, "-m", "pip",
"install", "--no-warn-script-location", "-r", "$SOURCE",
],
# Copy the requirements file, this is used to stop scons from
# triggering pip from attempting re-installing when nothing has
# changed. Pip takes a long time to determine that deps are met.
Copy('$TARGET', '$SOURCE')
]
)
Return('doInstall')