Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libnux
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Apps
BrainScaleS
libnux
Commits
2d76a289
Commit
2d76a289
authored
1 year ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
fix: avoid yaml dependency for waf setup
parent
a72b5768
No related branches found
Tags
ebrains-7.0-rc1-fixup3
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/hw/libnux/with_hostcode/wscript
+1
-1
1 addition, 1 deletion
tests/hw/libnux/with_hostcode/wscript
tests/wscript
+1
-1
1 addition, 1 deletion
tests/wscript
wscript
+0
-1
0 additions, 1 deletion
wscript
with
2 additions
and
3 deletions
tests/hw/libnux/with_hostcode/wscript
+
1
−
1
View file @
2d76a289
import os
from os.path import join
import re
import yaml
from enum import Enum, auto
from numbers import Integral
...
...
@@ -49,6 +48,7 @@ def build(bld):
hwdb_entries = os.environ.get("SLURM_HWDB_YAML")
fpga_id = int(re.match(r"W(?P<wafer>\d+)F(?P<fpga>\d+)",
slurm_licenses)["fpga"])
import yaml
fpgas = yaml.full_load(hwdb_entries)["fpgas"]
fpga = None
for entry in fpgas:
...
...
This diff is collapsed.
Click to expand it.
tests/wscript
+
1
−
1
View file @
2d76a289
import os
from os.path import join
import re
import yaml
from enum import Enum, auto
from waflib.TaskGen import feature, after_method
...
...
@@ -56,6 +55,7 @@ def build(bld):
hwdb_entries = os.environ.get("SLURM_HWDB_YAML")
fpga_id = int(re.match(r"W(?P<wafer>\d+)F(?P<fpga>\d+)",
slurm_licenses)["fpga"])
import yaml
fpgas = yaml.full_load(hwdb_entries)["fpgas"]
fpga = None
for entry in fpgas:
...
...
This diff is collapsed.
Click to expand it.
wscript
+
0
−
1
View file @
2d76a289
import os
from os.path import join
import re
import yaml
from enum import Enum, auto
from waflib import Logs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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