Skip to content

Commit

Permalink
update setup.py for python3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Feb 2, 2022
1 parent 862a587 commit 9cb5aa0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def get_boost_envrionment():
def get_python_version():
"""获取当前 python版本"""
py_version = platform.python_version_tuple()
py_version = int(py_version[0]) * 10 + int(py_version[1])
print('current python version:', int(py_version) * 0.1)
min_version = int(py_version[1])
main_version = int(py_version[0])
py_version = main_version * 10 + min_version if min_version < 10 else main_version * 100 + min_version
print('current python version: {}.{}'.format(main_version, min_version))
return py_version


Expand Down
6 changes: 3 additions & 3 deletions sub_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
entry_points={
'gui_scripts': [
Expand Down

0 comments on commit 9cb5aa0

Please sign in to comment.