Skip to content

Commit

Permalink
add v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
heatingma committed Aug 24, 2023
1 parent 67f3375 commit 7081bb2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 25 deletions.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,25 @@
Ubuntu 22.04 linux-5.19

### 使用方法
1.pip install okftools
1. pip install okftools
<div><center>
<img src=docs/pip.png width=70% height=70% >
<br>
<strong><font face="仿宋" size=2>图1 pip install okftools</font>
</strong>
</center></div>

2.pip show okftools
2. pip show okftools
<div><center>
<img src=docs/show.png width=70% height=70% >
<br>
<strong><font face="仿宋" size=2>图2 pip show okftools</font>
</strong>
</center></div>

3.cd the okftools path
3. cd the okftools path

4.python okftools_setup.py or python3 okftools_setup.py
<div><center>
<img src=docs/setup.png width=70% height=70% >
<br>
<img src=docs/pyinstaller.png width=70% height=70% >
<br>
<strong><font face="仿宋" size=2>图3 python okftools_setup.py</font>
</strong>
</center></div>

5. input the following command to use okftools
4. input the following command to use okftools
./oktfools
<div><center>
<img src=docs/okftools.png width=70% height=70% >
Expand Down
Binary file added dist/okftools-0.1.1.tar.gz
Binary file not shown.
20 changes: 9 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

import io
import os
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel, get_platform, get_abi_tag, tags
from setuptools.command.install import install as _install
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
from setuptools import setup

NAME = 'okftools'
Expand All @@ -27,19 +26,18 @@
long_description = DESCRIPTION


class InstallCommand(_install):
class BdistWheelCommand(_bdist_wheel):
def run(self):
try:
os.system("python okftools/okftools_setup.py")
os.system("python3 okftools/okftools_setup.py")
except:
pass
_install.run(self)
ori_dir = os.getcwd()
os.chdir('okftools')
os.system("python3 okftools_setup.py")
os.chdir(ori_dir)
super().run()


setup(
name=NAME,
version='0.1.0-alpha2',
version='0.1.1',
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
Expand All @@ -61,6 +59,6 @@ def run(self):
'Operating System :: POSIX :: Linux',
],
cmdclass={
'install': InstallCommand,
'bdist_wheel': BdistWheelCommand,
},
)

0 comments on commit 7081bb2

Please sign in to comment.