keflavich/image_registration

setuptools(>58) no longer supports 2to3

Closed this issue · 4 comments

I recently updated my pip base functionalities, including setuptools (59) and failed to install image_registration. I had to revert to setuptools 57.5.0 to install it using pip.

pip install setuptools==57.50

Just met up with same problem here. Worked around it by changing the value of use_2to3 in setup.py from True to False

setup(name=PACKAGENAME,
      version=VERSION,
      description=DESCRIPTION,
      scripts=scripts,
      install_requires=REQUIREMENTS,
      author=AUTHOR,
      author_email=AUTHOR_EMAIL,
      license=LICENSE,
      url=URL,
      long_description=LONG_DESCRIPTION,
      cmdclass=cmdclassd,
      zip_safe=False,
      use_2to3=False,  # change this from `True` to `False`
      entry_points=entry_points,
      **package_info
)

After alterning the file setup.py, simply run pip install . or python setup.py install.
I tried matching two images and found no errors.

want to submit that fix as a PR?

want to submit that fix as a PR?

Sure.

Closed by #35 , thanks @back2yes !