Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
conda
Commits
fae7a58c
Commit
fae7a58c
authored
4 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
remove f-strings
parent
502b6db2
No related branches found
No related tags found
No related merge requests found
Pipeline
#45540
canceled
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build-locally.py
+5
-5
5 additions, 5 deletions
build-locally.py
with
5 additions
and
5 deletions
build-locally.py
+
5
−
5
View file @
fae7a58c
...
...
@@ -3,8 +3,8 @@
# This file has been generated by conda-smithy in order to build the recipe
# locally.
#
import
os
import
glob
import
os
import
subprocess
from
argparse
import
ArgumentParser
...
...
@@ -27,7 +27,7 @@ def verify_config(ns):
valid_configs
=
{
os
.
path
.
basename
(
f
)[:
-
5
]
for
f
in
glob
.
glob
(
"
.ci_support/*.yaml
"
)
}
print
(
f
"
valid configs are
{
valid_configs
}
"
)
print
(
"
valid configs are {valid_configs}
"
.
format
(
valid_configs
=
valid_configs
)
)
if
ns
.
config
in
valid_configs
:
print
(
"
Using
"
+
ns
.
config
+
"
configuration
"
)
return
...
...
@@ -38,17 +38,17 @@ def verify_config(ns):
print
(
"
config not selected, please choose from the following:
\n
"
)
selections
=
list
(
enumerate
(
sorted
(
valid_configs
),
1
))
for
i
,
c
in
selections
:
print
(
f
"
{
i
}
.
{
c
}
"
)
print
(
"
{i}. {c}
"
.
format
(
i
=
i
,
c
=
c
)
)
s
=
input
(
"
\n
>
"
)
idx
=
int
(
s
)
-
1
ns
.
config
=
selections
[
idx
][
1
]
print
(
f
"
selected
{
ns
.
config
}
"
)
print
(
"
selected {
config}
"
.
format
(
config
=
ns
.
config
)
)
else
:
raise
ValueError
(
"
config
"
+
ns
.
config
+
"
is not valid
"
)
# Remove the following, as implemented
if
not
ns
.
config
.
startswith
(
"
linux
"
):
raise
ValueError
(
f
"
only Linux configs currently supported, got
{
ns
.
config
}
"
"
only Linux configs currently supported, got {
config}
"
.
format
(
config
=
ns
.
config
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment