Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
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
Container Registry
Model registry
Monitor
Service Desk
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
Show more breadcrumbs
Maunium
synapse
Commits
6d33f977
Commit
6d33f977
authored
10 years ago
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
pep8
parent
7564dac8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/python_dependencies.py
+3
-2
3 additions, 2 deletions
synapse/python_dependencies.py
with
3 additions
and
2 deletions
synapse/python_dependencies.py
+
3
−
2
View file @
6d33f977
...
...
@@ -26,7 +26,7 @@ CONDITIONAL_REQUIREMENTS = {
def
requirements
(
config
=
None
,
include_conditional
=
False
):
reqs
=
REQUIREMENTS
.
copy
()
for
key
,
req
in
CONDITIONAL_REQUIREMENTS
.
items
():
for
key
,
req
in
CONDITIONAL_REQUIREMENTS
.
items
():
if
(
config
and
getattr
(
config
,
key
))
or
include_conditional
:
reqs
.
update
(
req
)
return
reqs
...
...
@@ -61,7 +61,8 @@ class MissingRequirementError(Exception):
def
check_requirements
(
config
=
None
):
"""
Checks that all the modules needed by synapse have been correctly
installed and are at the correct version
"""
for
dependency
,
module_requirements
in
requirements
(
config
,
include_conditional
=
False
).
items
():
for
dependency
,
module_requirements
in
(
requirements
(
config
,
include_conditional
=
False
).
items
()):
for
module_requirement
in
module_requirements
:
if
"
>=
"
in
module_requirement
:
module_name
,
required_version
=
module_requirement
.
split
(
"
>=
"
)
...
...
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