| 1 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 2 |
# you may not use this file except in compliance with the License. |
| 3 |
# You may obtain a copy of the License at |
| 4 |
# |
| 5 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 6 |
# |
| 7 |
# Unless required by applicable law or agreed to in writing, software |
| 8 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 9 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 |
# See the License for the specific language governing permissions and |
| 11 |
# limitations under the License. |
| 12 |
|
| 13 |
# Pip default configurations |
| 14 |
|
| 15 |
variables: |
| 16 |
|
| 17 |
pip: pip |
| 18 |
pip-flags: | |
| 19 |
%{pip} install --no-deps --root=%{install-root} --prefix=%{prefix} |
| 20 |
pip-install-package: | |
| 21 |
%{pip-flags} %{conf-root} |
| 22 |
pip-download-dir: | |
| 23 |
.bst_pip_downloads |
| 24 |
pip-install-dependencies: | |
| 25 |
if [ -e %{pip-download-dir} ]; then %{pip-flags} %{pip-download-dir}/*; fi |
| 26 |
|
| 27 |
config: |
| 28 |
|
| 29 |
configure-commands: [] |
| 30 |
build-commands: [] |
| 31 |
|
| 32 |
# Commands for installing the software into a |
| 33 |
# destination folder |
| 34 |
# |
| 35 |
install-commands: |
| 36 |
- | |
| 37 |
%{pip-install-package} |
| 38 |
- | |
| 39 |
%{pip-install-dependencies} |
| 40 |
|
| 41 |
# Commands for stripping debugging information out of |
| 42 |
# installed binaries |
| 43 |
# |
| 44 |
strip-commands: |
| 45 |
- | |
| 46 |
%{strip-binaries} |