setup.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:pactum 作者: osantana 项目源码 文件源码
def run(self):
        try:
            self.status('Removing previous builds…')
            rmtree(os.sep.join(('.', 'dist')))
        except FileNotFoundError:
            pass

        self.status('Building Source and Wheel (universal) distribution…')
        os.system('{0} setup.py sdist bdist_wheel --universal '.format(sys.executable))

        self.status('Uploading the package to PyPi via Twine…')
        os.system('twine upload dist/*')

        sys.exit()


# Where the magic happens:
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号