keflavich / image_registration

Image Registration for Astronomy
MIT License
156 stars 53 forks source link

pip install fails with setuptools>=58 #36

Closed emolter closed 2 years ago

emolter commented 2 years ago

Hi there,

I've been using image_registration for astronomical image processing for a while now - thank you for your hard work on it! It looks like use_2to3 no longer works for newer versions of Python setuptools: see below.

emolter$ pip install image_registration
Collecting image_registration
  Using cached image_registration-0.2.4.tar.gz (2.8 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in image_registration setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
keflavich commented 2 years ago

thanks for the heads up; I need to update the infrastructure

keflavich commented 2 years ago

This should be solved by https://github.com/keflavich/image_registration/commit/64c3996b9d7311fc1675fca2b19be1f682c3c2c3

emolter commented 2 years ago

thanks for doing so! I tested it and it looks to be working for me in python 3.9