Open ysBach opened 1 year ago
As a work-around for now, the following works for me on python 3.10.9, numpy 1.23.5, astropy 5.1:
In setup.py add
VERSION = metadata.get('version', '')
RELEASE = False # To indicate it is a devel version
after URL = metadata.get('url', '')
and modify the
cmdclassd = register_commands()
# Freeze build information in version.py
generate_version_py(debug=get_debug_option(PACKAGENAME))
to
cmdclassd = register_commands(PACKAGENAME, VERSION, RELEASE)
# Freeze build information in version.py
generate_version_py(PACKAGENAME, VERSION, RELEASE, debug=get_debug_option(PACKAGENAME))
I did not submit a push request for this since, as @ysBach says, astropy_helpers is not at all the way forwards but it is an easy enough fix.
Using MBP 14" [2021, macOS 13.1, M1Pro(6P+2E/G16c/N16c/32G)], python 3.10 with Anaconda.
As astropy_helpers is deprecated, I wish the setup files to remove astropy_helpers eventually. (I really want to contribute but I have virtually no knowledge about setup files, especially on astropy_helpers...)