CERN / TIGRE

TIGRE: Tomographic Iterative GPU-based Reconstruction Toolbox
BSD 3-Clause "New" or "Revised" License
563 stars 186 forks source link

setup.py install is deprecated #479

Closed tsadakane closed 10 months ago

tsadakane commented 1 year ago

Problem

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
....

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 is pip install.

As for the second problem, it is solved by the replacement (after some modification of setup.py and pyproject.toml)

Environment