-
When using pyproject.toml, #7 3.969 Preparing editable metadata (pyproject.toml): started
#7 4.477 Preparing editable metadata (pyproject.toml): finished with status 'error'
#7 4.481 error: subprocess-exited-with-error
#7 4.481
#7 4.481 × Preparing editable metadata (pyproject.toml) did not run successfully.
#7 4.481 │ exit code: 1
#7 4.481 ╰─> [17 lines of output]
#7 4.481 Traceback (most recent call last):
#7 4.481 File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
#7 4.481 main()
#7 4.481 File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
#7 4.481 json_out['return_val'] = hook(**hook_input['kwargs'])
#7 4.481 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#7 4.481 File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 181, in prepare_metadata_for_build_editable
#7 4.481 return hook(metadata_directory, config_settings)
#7 4.481 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#7 4.481 File "/tmp/pip-build-env-rwcktu64/overlay/lib/python3.12/site-packages/poetry/core/masonry/api.py", line 43, in prepare_metadata_for_build_wheel
#7 4.481 builder = WheelBuilder(poetry)
#7 4.481 ^^^^^^^^^^^^^^^^^^^^
#7 4.481 File "/tmp/pip-build-env-rwcktu64/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 62, in __init__
#7 4.481 super().__init__(poetry, executable=executable)
#7 4.481 File "/tmp/pip-build-env-rwcktu64/overlay/lib/python3.12/site-packages/poetry/core/masonry/builders/builder.py", line 45, in __init__
#7 4.481 raise RuntimeError(
#7 4.481 RuntimeError: Building a package is not possible in non-package mode.
#7 4.481 [end of output]
#7 4.481
#7 4.481 note: This error originates from a subprocess, and is likely not a problem with pip.
#7 4.796 error: metadata-generation-failed The ValueError: Package name 'src' used in local dep './src' is reserved. Rename the directory. Is it possible to resolve these two issues? |
Beta Was this translation helpful? Give feedback.
Answered by
vbarda
Sep 4, 2024
Replies: 1 comment 2 replies
-
re: re: The dependencies directory can't be named src -- see this issue #1308 (comment) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
so unfortunately you cannot do that (set
package-mode=false
or install with --no-root) because we need to install the project itself, not just the dependencies