File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1313import sys
1414import os
1515from socket import gethostbyname
16- from distutils .version import LooseVersion
16+ from packaging .version import Version
1717import zmq
1818
1919import zprocess
@@ -337,7 +337,7 @@ def connect_to_zlock_server():
337337 global _zlock_server_supports_readwrite
338338 if hasattr (client , 'get_protocol_version' ):
339339 version = client .get_protocol_version ()
340- if LooseVersion (version ) >= LooseVersion ('1.1.0' ):
340+ if Version (version ) >= Version ('1.1.0' ):
341341 _zlock_server_supports_readwrite = True
342342
343343 # The user can call these functions to change the timeouts later if they
Original file line number Diff line number Diff line change 1616import os
1717import imp
1818import site
19- import distutils . sysconfig
19+ import sysconfig
2020
2121
2222# Directories in which the standard library and installed packages may be located.
2323# Modules in these locations will be whitelisted:
2424PKGDIRS = [
25- distutils . sysconfig .get_python_lib ( plat_specific = True , standard_lib = True ),
26- distutils . sysconfig .get_python_lib ( plat_specific = True , standard_lib = False ),
27- distutils . sysconfig .get_python_lib ( plat_specific = False , standard_lib = True ),
28- distutils . sysconfig .get_python_lib ( plat_specific = False , standard_lib = False ),
25+ sysconfig .get_path ( 'platstdlib' ),
26+ sysconfig .get_path ( 'platlib' ),
27+ sysconfig .get_path ( 'stdlib' ),
28+ sysconfig .get_path ( 'purelib' ),
2929 site .getusersitepackages (),
3030]
3131PKGDIRS += site .getsitepackages ()
Original file line number Diff line number Diff line change 11import os
22from setuptools import setup
33from setuptools .command .develop import develop
4- from distutils import log
4+ import logging
55
66
77class develop_command (develop ):
@@ -11,7 +11,7 @@ def run(self):
1111 path = os .path .join (self .install_dir , 'labscript-suite.pth' )
1212 super ().run ()
1313 if not self .uninstall :
14- log .info (f'Copying labscript-suite.pth to { path } ' )
14+ logging .info (f'Copying labscript-suite.pth to { path } ' )
1515 if not self .dry_run :
1616 self .copy_file ('labscript-suite.pth' , path )
1717
You can’t perform that action at this time.
0 commit comments