Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
fefa6e77
Commit
fefa6e77
authored
Aug 01, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move properties from ModulePool to Action for a better hierarchy
parent
fe523d2c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
action.py
hdlmake/action/action.py
+6
-0
module_pool.py
hdlmake/module_pool.py
+2
-4
No files found.
hdlmake/action/action.py
View file @
fefa6e77
...
@@ -27,6 +27,12 @@ import logging
...
@@ -27,6 +27,12 @@ import logging
class
Action
(
object
):
class
Action
(
object
):
"""This is the base class providing the common Action methods"""
"""This is the base class providing the common Action methods"""
def
__init__
(
self
):
self
.
top_module
=
None
self
.
_deps_solved
=
False
self
.
env
=
None
def
_check_all_fetched_or_quit
(
self
):
def
_check_all_fetched_or_quit
(
self
):
"""Check if every module in the pool is fetched"""
"""Check if every module in the pool is fetched"""
if
not
self
.
is_everything_fetched
():
if
not
self
.
is_everything_fetched
():
...
...
hdlmake/module_pool.py
View file @
fefa6e77
...
@@ -35,7 +35,7 @@ from .util import path as path_mod
...
@@ -35,7 +35,7 @@ from .util import path as path_mod
from
.
import
fetch
from
.
import
fetch
from
.env
import
Env
from
.env
import
Env
from
.action
import
(
ActionCheck
,
ActionCore
,
from
.action
import
(
Action
,
Action
Check
,
ActionCore
,
ActionTree
,
ActionSimulation
,
ActionTree
,
ActionSimulation
,
ActionSynthesis
,
ActionSynthesis
,
QsysHwTclUpdate
)
QsysHwTclUpdate
)
...
@@ -51,9 +51,7 @@ class ModulePool(list, ActionCheck, ActionCore,
...
@@ -51,9 +51,7 @@ class ModulePool(list, ActionCheck, ActionCore,
"""
"""
def
__init__
(
self
,
*
args
):
def
__init__
(
self
,
*
args
):
list
.
__init__
(
self
,
*
args
)
list
.
__init__
(
self
,
*
args
)
self
.
top_module
=
None
Action
.
__init__
(
self
)
self
.
_deps_solved
=
False
self
.
env
=
None
def
set_environment
(
self
,
options
):
def
set_environment
(
self
,
options
):
"""Initialize the module pool environment from the provided options"""
"""Initialize the module pool environment from the provided options"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment