[POT] Change python version to 3.8+ (#20071)
* Change python version to 3.8+ * Fix tests
This commit is contained in:
1 parent
129126bddc
commit
064a18eb09
5 files changed
+9
-10
No files matched your search
@@ -33,7 +33,7 @@ except ImportError:
|
||||
'Nevergrad package could not be imported. If you are planning to use '
|
||||
'any hyperparameter optimization algo, consider installing it '
|
||||
'using pip. This implies advanced usage of the tool. '
|
||||
'Note that nevergrad is compatible only with Python 3.7+'
|
||||
'Note that nevergrad is compatible only with Python 3.8+'
|
||||
)
|
||||
|
||||
try:
|
||||
|
||||
+4
-5
@@ -66,8 +66,7 @@ if '--install-dev-extras' in sys.argv:
|
||||
|
||||
INSTALL_REQUIRES = [
|
||||
"numpy>=1.16.6",
|
||||
"scipy~=1.7; python_version == '3.7'",
|
||||
"scipy>=1.8; python_version >= '3.8'",
|
||||
"scipy>=1.8",
|
||||
"jstyleson>=0.0.2",
|
||||
"addict>=2.4.0",
|
||||
"networkx<=3.1",
|
||||
@@ -89,10 +88,10 @@ DEPENDENCY_LINKS = []
|
||||
|
||||
python_version = sys.version_info[:2]
|
||||
if python_version[0] < 3:
|
||||
print('Only Python >= 3.7 is supported by POT/OV')
|
||||
print('Only Python >= 3.8 is supported by POT/OV')
|
||||
sys.exit(0)
|
||||
elif python_version[1] < 7:
|
||||
print('Only Python >= 3.7 is supported by POT/OV')
|
||||
elif python_version[1] < 8:
|
||||
print('Only Python >= 3.8 is supported by POT/OV')
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8c20a1ec0c1046013c163a6ab782e27938a0ad7d65eaf09e1ff8ecc991fe57e9
|
||||
oid sha256:eadb5fd2ef0c5693b33a190d2370c14534784c99f6f5900071d87cd40652ff6d
|
||||
size 52734
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0c423d68b3fe0d72724006f5cc79e03530ed2fd256a180fcdddf78d3c38bacce
|
||||
oid sha256:3d26e5cc565479c05b57f645138ae8d6b1048663236818a5aa60105d978002af
|
||||
size 52734
|
||||
@@ -22,9 +22,9 @@ class Command:
|
||||
# set system/version dependent 'start_new_session' analogs
|
||||
if sys.platform == 'win32':
|
||||
self.kwargs.update(creationflags=subprocess.CREATE_NEW_PROCESS_GROUP)
|
||||
elif sys.version_info < (3, 7): # assume posix
|
||||
elif sys.version_info < (3, 8): # assume posix
|
||||
self.kwargs.update(preexec_fn=os.setsid)
|
||||
else: # Python 3.7+ and Unix
|
||||
else: # Python 3.8+ and Unix
|
||||
self.kwargs.update(start_new_session=True)
|
||||
|
||||
def kill_process_tree(self, pid):
|
||||
|
||||
Reference in new issue
Block a user