setup.py install is deprecated
tsadakane opened this issue · 0 comments
tsadakane commented
Problem
python setup.py --install
got deprecated. See #478
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
....
After installation finished, pip list
lists "pytigre" twice. (See #478 (comment) )
Possible Solution
According to the article ( https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html ), the alternative for setup.py install
is pip install
.
As for the second problem, it is solved by the replacement (after some modification of setup.py
and pyproject.toml
)
Environment
- python: 3.11 or 3.10+
- Cython: 3.0.0
- OS: Windows 10
- CUDA: 11.8