Skip to content

wangdiwen/setup_py_helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

构建一个Python模块

This is a HelloWorld project, as a template for describle how to build a python module package.

步骤

  1. git clone https://github.com/wangdiwen/setup_py_helloworld
  2. cd setup_py_helloworld
  3. python setup.py sdist
  4. 执行1-3后,在dist目录下会出现 xxx.tar.gz

使用

  • 拿到xxx.tar.gz后,解压;
  • python setup.py install
# python
import helloworld
>>> from helloworld import say
>>> say.hi()
Hello World.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages