Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3.8fix multiprocessing work around #147

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Bio-Informatics"
],
python_requires=">=3.6,<3.8",
python_requires=">=3.6,<3.9",
install_requires=[
"pandas",
"pyranges",
Expand Down
6 changes: 6 additions & 0 deletions src/talon/talon.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
from . import query_utils as qutils
from . import transcript_utils as tutils

# fix to maintain multiprocessing similar to python 3.7
# see https://github.com/deeptools/HiCExplorer/issues/628
# and https://chrissardegna.com/blog/multiprocessing-changes-python-3-8/
if not mp.get_start_method(allow_none=True):
mp.set_start_method('fork')

# set verbosity for pysam
save = pysam.set_verbosity(0)
# pysam.set_verbosity(save)
Expand Down