-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
Try to install this project in editable mode and see how it fails:
uv pip install -e .
Using Python 3.11.11 environment at /home/yajo/prodevel/buffet-odoo/.data/venv/odoo-16.0
Resolved 2 packages in 55ms
error: Failed to prepare distributions
Caused by: Failed to build `odoo-upgrade @ file:///home/yajo/prodevel/buffet-odoo/kitchen/multiversion/upgrade-util`
Caused by: Build backend failed to build editable through `build_editable` (exit status: 1)
[stderr]
/home/yajo/.cache/uv/builds-v0/.tmp3K66DS/lib/python3.11/site-packages/setuptools_scm/version.py:352: UserWarning: <ScmVersion 0.0 dist=1110 node=g05aae80 dirty=False branch=master> does not correspond to a valid versioning date, assuming legacy version
warnings.warn(
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "/home/yajo/.cache/uv/builds-v0/.tmp3K66DS/lib/python3.11/site-packages/hatchling/build.py", line 83, in build_editable
return os.path.basename(next(builder.build(directory=wheel_directory, versions=['editable'])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yajo/.cache/uv/builds-v0/.tmp3K66DS/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line 155, in build
artifact = version_api[version](directory, **build_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yajo/.cache/uv/builds-v0/.tmp3K66DS/lib/python3.11/site-packages/hatchling/builders/wheel.py", line 496, in build_editable
return self.build_editable_detection(directory, **build_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yajo/.cache/uv/builds-v0/.tmp3K66DS/lib/python3.11/site-packages/hatchling/builders/wheel.py", line 537, in build_editable_detection
raise ValueError(message) from None
ValueError: Dev mode installations are unsupported when any path rewrite in the `sources` option changes a prefix rather than removes it, see: https://github.com/pfmoore/editables/issues/20
It would help a lot to develop it if it were possible.
@moduon MT-3426
Metadata
Metadata
Assignees
Labels
No labels