##// END OF EJS Templates
Add python 3.8 compatibility with macOs
jespinoza -
r1342:b856bac3a9b1 v3.0.0b5
parent child
Show More
@@ -1,8 +1,8
1 1 """Signal chain python package"""
2 2
3 3 try:
4 from .controller import Project
4 from schainpy.controller import Project
5 5 except:
6 6 pass
7 7
8 __version__ = '3.0.0b4'
8 __version__ = '3.0.0b5'
@@ -13,6 +13,7 import ast
13 13 import datetime
14 14 import traceback
15 15 import time
16 import multiprocessing
16 17 from multiprocessing import Process, Queue
17 18 from threading import Thread
18 19 from xml.etree.ElementTree import ElementTree, Element, SubElement
@@ -21,6 +22,8 from schainpy.admin import Alarm, SchainWarning
21 22 from schainpy.model import *
22 23 from schainpy.utils import log
23 24
25 if 'darwin' in sys.platform and sys.version_info[0] == 3 and sys.version_info[1] > 7:
26 multiprocessing.set_start_method('fork')
24 27
25 28 class ConfBase():
26 29
@@ -636,7 +639,7 class Project(Process):
636 639 while not err:
637 640 for conf in self.getUnits():
638 641 ok = conf.run()
639 if ok is 'Error':
642 if ok == 'Error':
640 643 n -= 1
641 644 continue
642 645 elif not ok:
@@ -46,6 +46,7 setup(
46 46 "Programming Language :: Python :: 3.5",
47 47 "Programming Language :: Python :: 3.6",
48 48 "Programming Language :: Python :: 3.7",
49 "Programming Language :: Python :: 3.8",
49 50 "Topic :: Scientific/Engineering",
50 51 ],
51 52 packages = {
General Comments 0
You need to be logged in to leave comments. Login now