Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build with python 3.12 #29

Open
sbird opened this issue May 8, 2024 · 2 comments
Open

Does not build with python 3.12 #29

sbird opened this issue May 8, 2024 · 2 comments

Comments

@sbird
Copy link

sbird commented May 8, 2024

numpy.distutils has been removed, see here:
https://numpy.org/doc/stable/reference/distutils_status_migration.html

Simply replacing numpy.distutils with distutils does not quite work:

[spb41]~/codes/classylss% python setup.py install
/usr/lib/python3.12/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()
/usr/lib/python3.12/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()
error: in 'libraries' option (library 'class'), 'sources' must be present and must be a list of source filenames

@sbird
Copy link
Author

sbird commented May 8, 2024

@rainwoodman Any ideas?

@sbird
Copy link
Author

sbird commented May 8, 2024

This also means that fastpm does not pip install with python 3.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant