Skip to content

Elk should be able to bootstrap itself #1

@cormacrelf

Description

@cormacrelf

Buck2 is just as good at downloading wheels and running Python executables as pipx. If elk can write out a BUCK file describing how to fetch itself and poetry, then you can make it so pipx does not need to be installed to work with elk. If all goes well you may never need pipx again, as you can upgrade elk using the bootstrapped version.

This would require publishing elk to pypi. Or making elk support git dependencies.

poetry elk bootstrap elk/BUCK
cat elk/BUCK
remote_file(name = "poetry.whl", ...)

prebuilt_python_library(name = "poetry", src = ":poetry.whl", deps =[...], ...)

remote_file(name = "elk.whl",...)

prebuilt_python_library(name = "poetry-plugin-elk", src = ":elk.whl", deps =["poetry"], ...)

python_binary(name = "elk", ...)
buck2 run elk:elk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions