Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
802f5623
Commit
802f5623
authored
Nov 21, 2015
by
Médéric Boquien
Browse files
Running the scripts in parallel trigger a deadlock on OS X with python 3.5. Implement a workaround.
parent
9831e294
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
802f5623
...
...
@@ -4,6 +4,7 @@
### Added
### Changed
### Fixed
-
Running the scripts in parallel trigger a deadlock on OS X with python 3.5. A workaround has been implemented.
### Optimised
...
...
pcigale_filters/__init__.py
View file @
802f5623
...
...
@@ -122,6 +122,12 @@ def plot_filters(fnames):
def
main
():
if
sys
.
version_info
[:
2
]
>=
(
3
,
4
):
mp
.
set_start_method
(
'spawn'
)
else
:
print
(
"Could not set the multiprocessing start method to spawn. If "
"you encounter a deadlock, please upgrade to Python≥3.4."
)
parser
=
argparse
.
ArgumentParser
()
subparsers
=
parser
.
add_subparsers
(
help
=
"List of commands"
)
...
...
pcigale_plots/__init__.py
View file @
802f5623
...
...
@@ -363,6 +363,12 @@ def sed(config, sed_type, nologo):
def
main
():
if
sys
.
version_info
[:
2
]
>=
(
3
,
4
):
mp
.
set_start_method
(
'spawn'
)
else
:
print
(
"Could not set the multiprocessing start method to spawn. If "
"you encounter a deadlock, please upgrade to Python≥3.4."
)
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'-c'
,
'--conf-file'
,
dest
=
'config_file'
,
...
...
Write
Preview
Supports
Markdown
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