Skip to content

Commit f6ad165

Browse files
committed
Fix the mp socket addresses conflicts in python>=3.9
1 parent d1326ec commit f6ad165

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ tmux*.log
77
!.gitignore
88
build
99
dist
10-
*.egg-info
10+
*.egg-info
11+
**/*.bak

ribodetector/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
Accurate and rapid RiboRNA sequences Detector based on deep learning.
55
"""
66

7-
__version__ = "0.3.0"
7+
__version__ = "0.3.1"
88
__author__ = 'ZL Deng'

ribodetector/detect_cpu.py

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import numpy as np
1919
from tqdm import tqdm
2020
import multiprocessing as mp
21+
import multiprocessing.util
2122
from collections import defaultdict
2223
from ribodetector import __version__
2324

@@ -28,6 +29,8 @@
2829
# Get the directory of the program
2930
cd = os.path.dirname(os.path.abspath(__file__))
3031

32+
## makes the socket addresses extremely random again to esure no address conflicts
33+
multiprocessing.util.abstract_sockets_supported = False
3134

3235
class Predictor:
3336
"""

ribodetector/utils/__version__.py

-1
This file was deleted.

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
setup(
1919
name="ribodetector",
20-
version="0.3.0",
21-
python_requires=">=3.8, <=3.10",
20+
version="0.3.1",
21+
python_requires=">=3.8, <=3.12",
2222
author="Z-L Deng",
2323
author_email="[email protected]",
2424
description="Accurate and rapid RiboRNA sequences Detector based on deep learning.",

0 commit comments

Comments
 (0)