You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UV, like pip has the concept of NoBuildIsolation where it doesn't create a venv for building and it does not install requirements, these need to be installed.
Exposing this allows us to use conda dependencies for building.
Because this is somwhat a global setting in UV to support it in this way we would need to create two seperate BuildDispatch's to support this and two seperate DistributionDatabases, and select which one to use somehow.
The easiest approach is to use a global project setting and then this is enabled for every sdist and every editable. This is quite brittle though, because if you use another sdist you might need to manually update your dependencies (to account for new build dependencies), as uv will no longer handle this.
Reacted by Martin Stancsics, Tassos Manganaris, Sibbe Bakker, Oliver Borchert, Apoorv Khandelwal, EdvardsZ, Diego Alvarez, Amir Mohammadi, Jeremy Bensimon, Ishan 火 Arya and 2 more
What is the reason we want build isolation? From my perspective, the conda environment that is created to run the pypi build is already isolated. I feel like Im missing something.
@baszalmstra I also can't think of a situation where we would want build isolation.
IIRC, the current situation is that we always have build isolation.
Great that you find it useful. Yeah the reasoning from my end is also that the feature is less useful if you cannot set it per package as you would need to manually manage all your sdist dependencies for all sdists in the project otherwise.
Activity
baszalmstra commentedon Jul 29, 2024
What is the reason we want build isolation? From my perspective, the conda environment that is created to run the pypi build is already isolated. I feel like Im missing something.
Hofer-Julian commentedon Jul 29, 2024
@baszalmstra I also can't think of a situation where we would want build isolation.
IIRC, the current situation is that we always have build isolation.
tdejager commentedon Jul 29, 2024
I will get back to this, but there are multiple reasons :)
baszalmstra commentedon Sep 3, 2024
#1909 was merged which should enable this!
jeremyben commentedon Sep 3, 2024
Wonderful ! The escape hatch per package is perfect for security as well. Thanks for the hard work.
tdejager commentedon Sep 4, 2024
Great that you find it useful. Yeah the reasoning from my end is also that the feature is less useful if you cannot set it per package as you would need to manually manage all your sdist dependencies for all sdists in the project otherwise.