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

update build, numpy.distutils etc #104

Open
jcwright77 opened this issue Jul 22, 2024 · 1 comment
Open

update build, numpy.distutils etc #104

jcwright77 opened this issue Jul 22, 2024 · 1 comment

Comments

@jcwright77
Copy link

trying to install from pypi

xarray dependency requires numpy >=1.23 and numpy.distutils is not supported after 1.23

So for example a conda installation with python 3.11 and numpy 1.24 will fail to build it. Probably need a branch to get a python 3.11 version working.

Requirement already satisfied: six>=1.5 in /home/software/anaconda3/2023.07/lib/python3.11/site-packages (from python-dateutil>=2.7->matplotlib->aurorafusion) (1.16.0)
Building wheels for collected packages: aurorafusion
Building wheel for aurorafusion (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [370 lines of output]
/tmp/pip-install-44qtovsz/aurorafusion_9b8ee19765e642fea6dbf829d76da724/setup.py:20: DeprecationWarning:

    `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
    of the deprecation of `distutils` itself. It will be removed for
    Python >= 3.12. For older Python versions it will remain present.
    It is recommended to use `setuptools < 60.0` for those Python versions.
    For more details, see:
      https://numpy.org/devdocs/reference/distutils_status_migration.html
  
  
    from numpy.distutils.core import setup, Extension
  No `name` configuration, performing automatic discovery
  running bdist_wheel
  running build
  running config_cc
  INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  INFO: build_src
  INFO: building extension "aurora._aurora" sources
  INFO: f2py options: []
  INFO:   adding 'build/src.linux-x86_64-3.11/build/src.linux-x86_64-3.11/aurora/fortranobject.c' to sources.
  INFO:   adding 'build/src.linux-x86_64-3.11/build/src.linux-x86_64-3.11/aurora' to include_dirs.
  INFO:   adding 'build/src.linux-x86_64-3.11/aurora/_aurora-f2pywrappers.f' to sources.
  INFO: building data_files sources
  Not existing data file: examples/basic.py
  Not existing data file: examples/frac_abundances.py
  INFO: build_src: building npy-pkg config files
  /home/software/anaconda3/2023.07/lib/python3.11/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, pypa/build or
          other standards-based tools.
  
          See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
          ******************************************************************************
@odstrcilt
Copy link
Collaborator

Please try the latest version in master or from new_recycling_PWI_model_merged branch.

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

2 participants