Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Merge requests
!40
Dev tp
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Dev tp
dev-tp
into
master
Overview
0
Commits
5
Pipelines
6
Changes
1
Merged
Tomáš Pecka
requested to merge
dev-tp
into
master
6 years ago
Overview
0
Commits
5
Pipelines
6
Changes
1
Expand
0
0
Merge request reports
Viewing commit
ef57e306
Prev
Next
Show latest version
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ef57e306
Build: CMakeGen: remove python f-strings as they are 3.6+ only
· ef57e306
Tomáš Pecka
authored
6 years ago
CMake/generate.py
+
4
−
4
Options
@@ -26,7 +26,7 @@ class SmartOpen:
def
__enter__
(
self
):
if
self
.
_dry_run
and
'
w
'
in
self
.
_mode
:
self
.
_fd
.
write
(
f
'
{
self
.
_filename
}
\n
'
+
'
-
'
*
self
.
SEPARATOR_SIZE
+
'
\n
'
)
self
.
_fd
.
write
(
'
{
}
\n
'
.
format
(
self
.
_filename
)
+
'
-
'
*
self
.
SEPARATOR_SIZE
+
'
\n
'
)
return
self
.
_fd
@@ -200,16 +200,16 @@ def main(dry_run, main_file, packages):
for
package
in
packages_set
:
try
:
packages_functions
[
type
](
package
,
dry_run
)
print
(
f
'
[
{
i
}
/
{
packages_cnt
}
] Generated
{
type
}
package
{
package
}
'
,
file
=
sys
.
stderr
)
print
(
'
[{}/{}] Generated {} package {
}
'
.
format
(
i
,
packages_cnt
,
type
,
package
)
,
file
=
sys
.
stderr
)
except
FileNotFoundError
as
e
:
print
(
f
'
[
{
i
}
/
{
packages_cnt
}
] Skipping library package
{
package
}
:
{
e
}
'
,
file
=
sys
.
stderr
)
print
(
'
[{}/{}] Skipping library package {
}: {}
'
.
format
(
i
,
packages_cnt
,
type
,
package
,
e
)
,
file
=
sys
.
stderr
)
i
+=
1
# Generate root file
if
main_file
:
create_root_cmakelist
(
dry_run
,
packages
)
print
(
f
'
[
{
i
}
/
{
packages_cnt
}
] Generated main CMakeLists.txt
'
,
file
=
sys
.
stderr
)
print
(
'
[{}/{}] Generated main CMakeLists.txt
'
.
format
(
i
,
packages_cnt
)
,
file
=
sys
.
stderr
)
# ----------------------------------------------------------------------------------------------------------------------
Loading