ANTsX / ANTsPyNet

Pre-trained models and utilities for deep learning on medical images in Python
https://antspynet.readthedocs.io
Apache License 2.0
182 stars 28 forks source link

Move to pyproject.toml #104

Closed cookpa closed 2 months ago

cookpa commented 2 months ago

setuptools_scm handles versioning from git tags

Also fix dependencies to ensure compatible templateflow and numpy

Doing it this way seems to resolve things for me. With requirements.txt, antspy's setup.py was installing newer tensorflow / numpy

cookpa commented 2 months ago

Annoyingly, setting numpy < 1.23 breaks for me on Python 3.11, I think because my Intel mac doesn't have a binary available on PyPI. It builds the wheel from source and it then doesn't work with tensorflow 2.13.

However, it works OK for me on Python 3.10.

cookpa commented 2 months ago

Later numpy works for me on Mac (Intel) on Linux.

I was trying to use older numpy because of this ANTsPy issue but I suspect that was actually a pandas issue.