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

build: restrict numpy<2 to avoid build errors #90

Closed
wants to merge 1 commit into from
Closed

Conversation

eginhard
Copy link
Member

@eginhard eginhard commented Oct 3, 2024

The following error occured during the build:

#15 46.12   × Preparing metadata (pyproject.toml) did not run successfully.
#15 46.12   │ exit code: 1
#15 46.12   ╰─> [23 lines of output]
#15 46.12       Partial import of sklearn during the build process.
#15 46.12       Traceback (most recent call last):
#15 46.12         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
#15 46.12           main()
#15 46.12         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
#15 46.12           json_out['return_val'] = hook(**hook_input['kwargs'])
#15 46.12         File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
#15 46.12           return hook(metadata_directory, config_settings)
#15 46.12         File "/tmp/pip-build-env-buzqzx8x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 373, in prepare_metadata_for_build_wheel
#15 46.12           self.run_setup()
#15 46.12         File "/tmp/pip-build-env-buzqzx8x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 503, in run_setup
#15 46.12           super().run_setup(setup_script=setup_script)
#15 46.12         File "/tmp/pip-build-env-buzqzx8x/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 318, in run_setup
#15 46.12           exec(code, locals())
#15 46.12         File "<string>", line 319, in <module>
#15 46.12         File "<string>", line 311, in setup_package
#15 46.12         File "/tmp/pip-build-env-buzqzx8x/overlay/local/lib/python3.10/dist-packages/numpy/distutils/core.py", line 24, in <module>
#15 46.12           from numpy.distutils.command import config, config_compiler, \
#15 46.12         File "/tmp/pip-build-env-buzqzx8x/overlay/local/lib/python3.10/dist-packages/numpy/distutils/command/config.py", line 19, in <module>
#15 46.12           from numpy.distutils.mingw32ccompiler import generate_manifest
#15 46.12         File "/tmp/pip-build-env-buzqzx8x/overlay/local/lib/python3.10/dist-packages/numpy/distutils/mingw32ccompiler.py", line 29, in <module>
#15 46.12           from distutils.msvccompiler import get_build_version as get_build_msvc_version
#15 46.12       ModuleNotFoundError: No module named 'distutils.msvccompiler'
#15 46.12       [end of output]

@eginhard eginhard changed the title build: update cython to avoid build errors build: restrict numpy<2 to avoid build errors Oct 3, 2024
@eginhard
Copy link
Member Author

eginhard commented Oct 4, 2024

Obsoleted by #92

@eginhard eginhard closed this Oct 4, 2024
@eginhard eginhard deleted the update-cython branch October 7, 2024 13:36
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

Successfully merging this pull request may close these issues.

1 participant