Skip to content

Put a safeguard on spk convert pip to not install python-X if X already exists #1386

@dcookspi

Description

@dcookspi

This is a request for feature to block packages from being converted with the convert tool. Specifically for a safeguard on spk convert pip to not install python-X if X already exists in SPK.

This has nearly bitten us (SPI) a couple of times. The example spk package is opencolorio, which exists in our repo and provides valid python bindings. The problem package is the pypi opencolorio that is converted to python-opencolorio by spk convert pip ... typically as part of a dependency of another top-level python packages that's being converted. python-opencolorio provides conflicting opencolorio bindings and this may lead you subtle issues that we want to avoid (based on assumptions of names and capabilities that are not correct). Another example of this is openimageio.

So we'd like a way to prevent this from occuring throughspk convert pip ... commands. At the moment, someone converting a top-level package might not be aware of all the dependencies it is also converting and whether conflicting ones like this should be published into spk.

This could be by checking for spk package names before converting packages or dependencies, or having config for blocklist of know culprits for a site (in case they don't want a blanket ban on this kind of shard name suffixes).

Metadata

Metadata

Assignees

No one assigned

    Labels

    agenda itemItems to be brought up at the next dev meeting
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions