-
Notifications
You must be signed in to change notification settings - Fork 490
Expand file tree
/
Copy pathtime_render.py
More file actions
38 lines (26 loc) · 871 Bytes
/
time_render.py
File metadata and controls
38 lines (26 loc) · 871 Bytes
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
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
# god-awful hack to get data from the test recipes
import sys
from conda_build import api
_thisdir = os.path.dirname(__file__)
sys.path.append(os.path.dirname(_thisdir))
from tests.utils import metadata_dir # noqa: E402
variant_dir = os.path.join(metadata_dir, "..", "variants")
def time_simple_render():
api.render(
os.path.join(metadata_dir, "python_run"), finalize=False, bypass_env_check=True
)
def time_top_level_variant_render():
api.render(
os.path.join(variant_dir, "02_python_version"),
finalize=False,
bypass_env_check=True,
)
def time_single_top_level_multi_output():
api.render(
os.path.join(variant_dir, "test_python_as_subpackage_loop"),
finalize=False,
bypass_env_check=True,
)