distutils ignores changes to setup.py when building an extension?

时间秒杀一切 提交于 2019-12-05 08:57:40
  1. Just delete under site-packages path any file related to it, you may find sometimes more than one version or some files packaged as zip files or run the following command python setup.py clean --all.
  2. Recompile and install again.

But I will recommend to use python setup.py develop so you don't need to reinstall it with every change, you will be able to frequently edit your code and not have to re-install it again. python setup.py install is used to install typically a ready to use third-party packages.

Check here to better understand python packaging.

Summary:

python setup.py clean --all
python setup.py develop

I needed to run

python setup.py clean --all
python setup.py develop

Thanks to DhiaTN for getting me there.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!