python setup.py --install got deprecated. See #478
1.
While installing with python setup.py --install as described in the instruction, the following waring is shown at the beginning:
running install
C:\opt\anaconda3\envs\test311\Lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
C:\opt\anaconda3\envs\test311\Lib\site-packages\setuptools\_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
running bdist_egg
....
Problem
python setup.py --install
got deprecated. See #4781. While installing with
python setup.py --install
as described in the instruction, the following waring is shown at the beginning:2. After installation finished,
pip list
lists "pytigre" twice. (See https://github.com/CERN/TIGRE/pull/478#issuecomment-1680209701 )Possible Solution
According to the article ( https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html ), the alternative for
setup.py install
ispip install
.As for the second problem, it is solved by the replacement (after some modification of
setup.py
andpyproject.toml
)Environment