MAINT: Fix wheel builder by specifying package directory
HaoZeke opened this issue · 1 comments
HaoZeke commented
+ python -m pip wheel /Users/runner/work/asv/asv --wheel-dir=/private/var/folders/qv/pdh5wsgn0lq3dp77zj602b5c0000gn/T/cibw-run-jsv1saz7/cp37-macosx_x86_64/built_wheel --no-deps
Processing /Users/runner/work/asv/asv
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
/private/var/folders/qv/pdh5wsgn0lq3dp77zj602b5c0000gn/T/pip-build-env-45e_tk7c/overlay/lib/python3.7/site-packages/setuptools_scm/git.py:135: UserWarning: "/Users/runner/work/asv/asv" is shallow and may cause errors
warnings.warn(f'"{wd.path}" is shallow and may cause errors')
/private/var/folders/qv/pdh5wsgn0lq3dp77zj602b5c0000gn/T/pip-build-env-45e_tk7c/overlay/lib/python3.7/site-packages/setuptools/config/pyprojecttoml.py:66: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
config = read_configuration(filepath, True, ignore_option_errors, dist)
error: Multiple top-level packages discovered in a flat-layout: ['asv', 'wheelhouse'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
To find more information, look for "package discovery" on setuptools docs.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.