简体   繁体   中英

Updating Python Package with setup.py

I maintain a Python Package on PyPI and I am having trouble testing changes. I would like to install it on my own computer and test before updating my version on PyPI. I try to run “python setup.py install” but it doesn't reflect the changes that I have made. The only way I have been able to get it to reflect changes is to upload it to PyPI and update it with pip. Is there anyway to update using the setup.py? Or anyway to install on my computer before uploading to PyPI? I would assume there has to be but I have not been able to find anything for it yet

您可以将可编辑的安装与pip一起使用,以从源安装并在进行更改时更新它:

$ pip install -e .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM