File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 9
9
"""
10
10
11
11
from __future__ import division , print_function , absolute_import
12
+ import sys
12
13
13
- import pkg_resources
14
+ if sys .version_info >= (3 , 8 ):
15
+ from importlib .metadata import version
16
+ else :
17
+ from importlib_metadata import version
14
18
15
- __version__ = pkg_resources . get_distribution ('pyworld' ). version
19
+ __version__ = version ('pyworld' )
16
20
17
21
from .pyworld import *
Original file line number Diff line number Diff line change 32
32
cmdclass = {'build_ext' : build_ext },
33
33
version = _VERSION ,
34
34
packages = find_packages (),
35
- install_requires = ['numpy' ],
35
+ install_requires = [
36
+ 'numpy' ,
37
+ 'importlib-metadata; python_version<"3.8"' ,
38
+ ],
36
39
extras_require = {
37
40
'test' : ['nose' ],
38
41
'sdist' : ['numpy' , 'cython>=0.24' ],
You can’t perform that action at this time.
0 commit comments