Skip to main content

daline unit generator and runner

Project description

发布版打包步骤

  1. 切换python版本至python37
  2. 在pythonTB/DalineUnit中,运行pycPackage.py将文件打包为pyc
  3. 将打所有pyc文件拷贝至当前目录下DalineUnit文件夹下,所有需要的文件也拷到相同目录(比如目前的src文件夹,也会打包至whl中)
  4. 修改setup中version版本号,注意上传到pypi中的只能增加
  5. 命令行运行python setup.py bdist_wheel --python-tag=py37,生成dist\DalineUnit-0.0.44-py37-none-any.whl
  6. 切换python版本至python36,重复0-4
  7. 命令行运行twine upload dist/*,上传至pypi

打包本地测试版 -pyc

  • 和上面一样,只是不允许6上传步骤

打包本地调试版 -.py

上述的打包方法都是pyc文件,无法调试,可以将python源文件打包成whl后,安装,然后可以调试 0. 将所有需要的python源文件拷贝至当前目录下DalineUnit文件夹下

  1. 命令行运行python setup.py bdist_wheel --python-tag=py37,生成dist\DalineUnit-0.0.44-py37-none-any.whl
  2. 运行pip install E:\Code\DalineUnitPackage\dist\DalineUnit-0.0.44-py37-none-any.whl
  3. 在python的安装目录,site-package/DalineUnit下可看到源文件,可以调试
  4. 建议debug在site-package/DalineUnit下修改源文件,调试完成后将.py文件拷回至pythonTB中,然后重新运行打包发布步骤

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

DalineUnit-0.0.69-py37-none-any.whl (3.7 MB view hashes)

Uploaded Python 3.7

DalineUnit-0.0.69-py36-none-any.whl (3.7 MB view hashes)

Uploaded Python 3.6

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page